home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.windows.open-look:3796 alt.toolkits.xview:857
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!ucdavis!sakura!freund
- From: freund@sakura.cs.ucdavis.edu (Jason Freund)
- Newsgroups: comp.windows.open-look,alt.toolkits.xview
- Subject: Text pane with TTY and TEXTSW ??
- Message-ID: <16941@ucdavis.ucdavis.edu>
- Date: 11 Sep 92 00:28:06 GMT
- Sender: usenet@ucdavis.ucdavis.edu
- Followup-To: comp.windows.open-look
- Organization: Department of Computer Science, University of California, Davis
- Lines: 29
-
- I'm writing a new tiptool program that will let you run "tip" from a
- window. I built it with devguide 3 and "gxv" and modified the
- "tip_stubs.c" file to make all the buttons work.
-
- Everything works fine except that I want my TTY frame to have a
- scrollbar like the one that was originally there when I built the
- interface in devguide (by dragging a "text pane" into my window).
- Unfortunately, when I changed the xv_create for the frame from TEXTSW to
- TTY, it did let me run the tty in the text pane like I wanted, but it
- took away my scrollbar.
-
- My xv_create now looks like this:
-
- tty = temp = obj = xv_create(owner, TTY, /* _was_ TEXTSW instead of TTY */
- XV_KEY_DATA, INSTANCE, ip,
- XV_X, 0,
- XV_Y, (int)xv_get(ip->controls1, XV_Y) +
- (int)xv_get(ip->controls1, XV_HEIGHT),
- XV_WIDTH, WIN_EXTEND_TO_EDGE,
- XV_HEIGHT, WIN_EXTEND_TO_EDGE,
- OPENWIN_SHOW_BORDERS, TRUE,
- NULL);
-
- I can't put both "TTY, TEXTSW" in there. And "TTY|TEXTSW" won't work.
- How can I get the scrollbar back?
-
- Thanks.
- Jason Freund
- summer address: jasonf@wayfarer.EBay.Sun.COM
-