home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.open-look
- Path: sparky!uunet!spool.mu.edu!yale.edu!jvnc.net!news.edu.tw!sparc4.ncu.edu.tw!mbox!michael
- From: michael@mbox.ee.ncu.edu.tw (Michael Lin)
- Subject: The controlarea of notice widget problem
- Message-ID: <1992Nov6.092226.16918@sparc4.ncu.edu.tw>
- Sender: news@sparc4.ncu.edu.tw
- Organization: Dep. of EECS, National Central University, Chungli, Taiwan, R.O.C.
- Date: Fri, 6 Nov 1992 09:22:26 GMT
- Lines: 37
-
- Hi,
- When I use the control area of notice widget to display text, it does
- not work. The notice widget doesn't display the text. Can it or not?
- The program is as following
-
- void callback(w, client_data, call_data)
- Widget w;
- XtPointer client_data, call_data;
- {
- Widget notice, con, text, rt, reset, ok;
- Widget begin, inter, expert;
- char message[80];
-
- if (notice == (Widget)NULL)
- {
- notice = XtVaCreatePopupShell("notice",
- noticeShellWidgetClass, w,
- NULL);
-
- XtVaGetValues(popup, XtNtextArea, &text,
- XtNcontrolArea, &con,
- NULL);
-
- rt = XtCreateManagedWidget("rt", rubberTileWidgetClass,
- con, NULL, 0);
-
- XtVaSetValues(text, XtNstring, "Fastest Mine Sweepers", NULL);
-
- begin = XtVaCreateManagedWidget("Beginner",
- staticTextWidgetClass, rt,
- XtNlabel, "test",
- NULL);
- }
- XtPopup(notice, XtGrabExclusive);
- }
-
- Michael Lin
-