home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!ursa!buzz
- From: buzz@bear.com (Buzz Moschetti)
- Newsgroups: alt.toolkits.xview
- Subject: Re: Question about calling Text window
- Message-ID: <BUZZ.92Dec21091156@lion.bear.com>
- Date: 21 Dec 92 14:11:56 GMT
- References: <BzJFqA.AKG@unccsun.uncc.edu>
- Sender: news@bear.com
- Reply-To: buzz@bear.com (Buzz Moschetti)
- Organization: Bear, Stearns & Co. - FAST
- Lines: 21
- In-reply-to: akpatel@uncc.edu's message of 20 Dec 92 03:15:46 GMT
-
- In article <BzJFqA.AKG@unccsun.uncc.edu> akpatel@uncc.edu (Alpesh K Patel) writes:
- I am trying to call a text window (read-only) when the user presses something.
- [...]
- char *name = (char *)xv_get(item, PANEL_LABEL_STRING);
-
- frame = xv_create(NULL,FRAME,NULL);
-
- textsw=xv_create(frame,TEXTSW,
- TEXTSW_FILE_CONTENTS, "/tmp/test/help_doc",
- TEXTSW_READ_ONLY, TRUE,
- NULL);
- sbar=xv_get(textsw,TEXTSW_SCROLLBAR);
- notify_interpose_event_func(xv_get(sbar, SCROLLBAR_NOTIFY_CLIENT),
- monitor_scroll, NOTIFY_SAFE);
-
- ---> xv_set(frame, XV_SHOW, TRUE, NULL); <---
-
- }
-
- Frames are created by default in an unmapped state. Call xv_set()
- as shown to pop it up after you create it.
-