[comp.windows.x.motif] XmToggleButtonGetState

mitch@edsvcs.osf.org (Mitch Trachtenberg) (08/24/90)

>BTW, I've noticed that ToggleButton GADGETS don't work for
>XmToggleButtonGetState.

This is one area where Motif's convenience routines are *ahem*
nonideal.  It turns out there are separate routines for gadgets:
XmToggleButtonGadget[Get/Set]State.  The convenience routines
bypass the intrinsics Get/SetValues mechanism.  I'd suggest you
just use Xt[Set/Get]Values to set or retrieve the state.  
The convenience routine is no easier.
 
>XmToggleButtonSetState always seems to coredump as well whether
>the toggle button is a widget or a gadget.

Haven't seen this one.  What system?
--
Mitch Trachtenberg, OSF  (mitch@osf.org) (617) 621-8895