(non)exclusive buttons in menu bars [message #9789] |
Fri, 22 August 1997 00:00 |
Alex Schuster
Messages: 124 Registered: February 1997
|
Senior Member |
|
|
Right here, in Netscape's composing window, there are buttons in the
menu bar which work as nonexclusive buttons: I can set options directly
by selecting the button.
AFAIK that's not directly possible in IDL (why??), but maybe someone
already wrote some routines for that?
A workaround should be possible. I'm thinking of a modified version of
WIDGET_BUTTON. Maybe the button text should be given via a TITLE
keyword, and the state (on/off) via the VALUE keyword. Somehow this
state should be shown in the title, by adding (On) / (Off) or s.th. like
that. When it is selected, let an event handler toggle this state and
update the title. FUNC_GET_VALUE and PRO_SET_VALUE make setting the
states transparent.
Something like that. Should be possible, shouldn't it? Has anybody
already thought about this, or perhaps written such a routine?
Alex
--
Alex Schuster Wonko@weird.cologne.de PGP Key available
alex@pet.mpin-koeln.mpg.de
|
|
|