This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Help with MenuChecked function please


Help with MenuChecked function please

Postby mervjoyce » Jul 5, 2004 @ 2:48pm

I am having trouble with the "MenuChecked" function. It always appears to return "false".

My code is something like:

As expected ...
CheckMenu(idMenu$,1501,1); //this sets the check box
ShowMessage(MenuChecked(idMenu$,1501))
CheckMenu(idMenu$,1501,0); //this clears the check box
ShowMessage(MenuChecked(idMenu$,1501))

However

ShowMessage(MenuChecked(idMenu$,1501))
always reports "0" (eg false)

and the following code then does not toggle as expected;

CheckMenu(idmenu$,1501,NOT(MenuChecked(idMenu$,1501)))

I have got around the problem in the meantime by using a "global variable" to track the "checked" state and using it as the parameter to CheckMenu after performing the NOT on the global variable - rather a waste of a variable.

What am I doing wrong?

thanks
Merv Joyce
mervjoyce
pm Member
 
Posts: 113
Joined: Jun 1, 2004 @ 2:05pm
Location: Brisbane, AUSTRALIA


Postby PointOfLight » Jul 6, 2004 @ 5:35pm

Eric Pankoke
Programmer
Point Of Light Software
http://www.polsoftware.com/
PointOfLight
pm Member
 
Posts: 525
Joined: Nov 2, 2003 @ 8:39pm


Postby kornalius » Jul 6, 2004 @ 9:14pm

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Return to Pocket Programming Language (PPL)


Sort


Forum Description

Discuss this new development tool.

Moderator:

kornalius

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron