Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uwm.edu!psuvax1!husc6!m2c!wpi!daven From: daven@wpi.wpi.edu (David N Nedde) Newsgroups: comp.windows.x Subject: Widget Creation Library popup problem Keywords: WCL,popup Message-ID: <14665@wpi.wpi.edu> Date: 27 Aug 90 16:28:00 GMT Organization: Worcester Polytechnic Institute, Worcester, Mass. Lines: 33 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