home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!contex!felix.contex.com!avinash
- From: avinash@felix.contex.com (Avinash Chopde)
- Newsgroups: comp.windows.x.motif
- Subject: Moving the scrollbar of a XmScrolledWindow.
- Message-ID: <3269@contex.contex.com>
- Date: 11 Jan 93 15:34:06 GMT
- Sender: news@contex.contex.com
- Distribution: usa
- Lines: 33
-
- I have a XmScrolledWindow, which contains a XmRowColumn.
- When I add children to the XmRowColumn (vertical format), the new
- widgets are always added to the bottom, but the vertical scrollbar
- does not change its value --- I need to change it so that the vertical
- scrollbar always positions itself to make the latest addition to the
- RowColumn visible.
-
- I can do this by this method (using XmAUTOMATIC scrolling):
- 1) get the widget that represents the vertical scrollbar, set it to its
- largest value (== maximum - sliderSize)
-
- But, this does not redraw the ScrolledWindow.
- So, I had to do this:
- 2) use XtCallCallbacks( ) to call the valueChangedCallback of the
- vertical scrollbar. (but then, what should be sent as the callData?)
-
- Now, the Xt manual says that application programs should not call
- XtCallCallbacks...
-
- Is there any better way doing what I need to do?
- Is it possible to force RowColumn to add children to the beginning of
- the column instead of the end?
- Is there a better way to send user-events to the ScrolledWindow?
- (It is too much to change over to APPLICATION defined scrolling,
- so am hoping that it is possible to use AUTOMATIC scrolling, and yet
- tell the ScrolledWindow to scroll itself to its max slider
- position.)
-
- Thanks for any pointers...
- --
- ---------------------------
- Avinash Chopde office : 617 246 1776x5582
- avinash@contex.com (...!uunet!contex!avinash)
-