home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / toolkits / xview / 1146 next >
Encoding:
Text File  |  1992-12-21  |  1.2 KB  |  35 lines

  1. Path: sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!ursa!buzz
  2. From: buzz@bear.com (Buzz Moschetti)
  3. Newsgroups: alt.toolkits.xview
  4. Subject: Re: Question about calling Text window
  5. Message-ID: <BUZZ.92Dec21091156@lion.bear.com>
  6. Date: 21 Dec 92 14:11:56 GMT
  7. References: <BzJFqA.AKG@unccsun.uncc.edu>
  8. Sender: news@bear.com
  9. Reply-To: buzz@bear.com (Buzz Moschetti)
  10. Organization: Bear, Stearns & Co. - FAST
  11. Lines: 21
  12. In-reply-to: akpatel@uncc.edu's message of 20 Dec 92 03:15:46 GMT
  13.  
  14. In article <BzJFqA.AKG@unccsun.uncc.edu> akpatel@uncc.edu (Alpesh K Patel) writes:
  15.    I am trying to call a text window (read-only) when the user presses something. 
  16. [...]
  17.        char *name = (char *)xv_get(item, PANEL_LABEL_STRING);
  18.  
  19.        frame = xv_create(NULL,FRAME,NULL);
  20.  
  21.        textsw=xv_create(frame,TEXTSW,
  22.            TEXTSW_FILE_CONTENTS, "/tmp/test/help_doc",
  23.            TEXTSW_READ_ONLY, TRUE,
  24.            NULL);
  25.            sbar=xv_get(textsw,TEXTSW_SCROLLBAR);
  26.        notify_interpose_event_func(xv_get(sbar, SCROLLBAR_NOTIFY_CLIENT),
  27.        monitor_scroll, NOTIFY_SAFE);
  28.  
  29. --->     xv_set(frame, XV_SHOW, TRUE, NULL);  <---
  30.  
  31.    }
  32.  
  33. Frames are created by default in an unmapped state.  Call xv_set()
  34. as shown to pop it up after you create it.
  35.