Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
Moderator: | STAR::VATNE |
Created: | Mon Oct 30 1989 |
Last Modified: | Mon Dec 31 1990 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3726 |
Total number of notes: | 19516 |
This application consists of a paned window containing three lists. When the sashes are moved up and down the lists should resize. To get the height of each pane, I have put into it a DrawingArea widget. When the sashes are moved, the Drawing Areas effected makes an XmNresizeCallback which is used to get the new height of the panes. Within each Drawing Area widget is an Form widget which has a number of children arranged using Attachment resources. One of these children is the ScrolledList widget. I compute new values for XmNvisibleItemsCount and XmNheight from the height of the pane, and then pass then to the ScrolledList using XtSetValues. These values are correctly passed - I used XtGetValues to check that. After that XtmanageChild is called with the id of the Scrolled List. Unfortunately, the XmScrolledList does not always change in size. Sometimes it does and sometimes it doesn't. I can't figure out any criteria to predict this behavior. Also having increased in size, the widget refuses to shink. Anyone out there, successfully resizing Scrolled List? Mike
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2792.1 | Possible possibility | DECWIN::KLEIN | Mon May 21 1990 16:12 | 5 | |
If appropriate, you could use the VList widget, which automatically resizes itself in the setup you described. You would not need the resize callback, as all this logic is already in the widget. -steve- |