[comp.windows.x] Q: actions and the Toggle-Widget

stumpf@Informatik.TU-Muenchen.DE (Markus Stumpf) (05/10/91)

While we're on the topic (kind of):

Using X.V11R4 pl 18 on a SunSparc (SunOS4.1) running twm!

I have a Toggle-widget with a Label-Widget at its side!
Both are children of the same Form-widget
I want the toggle to be activated also, when the user clicks in the
label-area!
In the App-Defaults there is:

...
*FormatSelect*shortName.translations:    #replace \n\
        <EnterWindow>:          highlight(Always) \n\
        <LeaveWindow>:          unhighlight() \n\
        <Btn1Down>, <Btn1Up>:   toggle() notify()
...

(shortName is the name of the Label-widget)
and in the C-source I do a:

...
XtInstallAccelerators(shortNameW, toggleW);
...

after I XtVaCreateManagedWidget() both widgets. (shortNameW is the Label-widget, 
toggleW is the Toggle-Widget.

When the Label-Widget gets realized (XtPopupSpringLoaded() to the parent of the
Form-Widget, which is a OverrideShell-widget) I get:

	Warning: Actions not found: highlight, unhighlight, toggle, notify

If I replace the toggleWidgetClass with commandWidgetClass, i.e. 
create a Command-widget instead of the Toggle-widget, I only get:

	Warning: Actions not found: toggle

which is okay, as the Command-Widget has no toggle action!
Is there something broken with the Toggle-widget?
What am I doing wrong? How to fix it!
Thanks!

	\Maex

-- 
+- Markus Stumpf                         Technische Universitaet Muenchen   -+
|                            Institut fuer Informatik, Rechnerbetriebsgruppe |
|  stumpf@informatik.tu-muenchen.de              Postfach 202420             |
+-   ...@{unido.uucp,relay.cs.net}        D-8000 Muenchen 2, West Germany   -+