daven@wpi.wpi.edu (David N Nedde) (08/27/90)
I am trying to use the Widget Creation Library to pop up a (say) label widget when a button is pressed. This is on a Sun Sparc 1 using WCL 1.03 using the Ari program. I get a segmentation fault when I press the button. Here is what I defined in my resource file: --------- Ari.WcChildren: command Ari.title: Test *title1.wcClass: commandWidgetClass *title1.label: press for popup *title1.callback: WcPopupGrabCB( *about ) # I thought this would work: *about.wcClass: overrideWidgetCLass *about.wcChildren: hello # or this: *about.wcConstructor: XtCreatePopupShell *about.wcChildren: hello # This is just the popped up label *hello.wcClass: labelWidgetClass *hello.label: Hello World ----------- There is an example in the WCL distribution using the translation table and actions, but is seems that I should just be able to use the command button's callback to pop up another widget. Any help is appreciated. -- David Nedde, Computer Science Dept. daven@maxine.wpi.edu Worcester Polytechnic Institute (508) 831-5117/5668 Worcester, MA 01609