Hi again,
        thanks to Mark Crompton, Peter Thake and Martin Higham for their
replies. They each advised pretty much the same thing... use a global
variable as a flag. This had occurred to me but I was sort of hoping there
may have been a more elegant method. Oh well, its only a few extra lines of
code.....and it works :)

my original question:
--------------------------------------------------------------------------
  can anyone tell me if it is possible to query the status of a custom
toggle button? I need to be able to determine whether it is checked (pushed
down) or unchecked (raised).

Mapbasic includes the function "MenuitemInfoByID()" which will return the
current state of a menu item, but there appears to be no equivalent function
for a tool/toggle button.
--------------------------------------------------------------------------

regards,

~~~~~~~~~~~~~~~~~~~~~
Darren Murphy
Observations Operations Sub-section
Networks and Codes Unit
Bureau of Meteorology
Melbourne, Australia
Ph. +61 3 96694706
Fax +61 3 96694168
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to