Scrolling Panels

Roger Opperman oppr at cardiac-ra.swmed.utexas.edu
Wed Jul 18 01:22:29 AEST 1990


>I have a frame with one panel inside of it.  In this panel, I have a
>toggle displayed vertically with about 5 choices in it.  The panel is set
>to a pretty small size...the choices go below the panel.  I attached a
>vertical scrollbar to this window and called panel_update_scrolling_size
>after I created the toggle.  The panel still refuses to scroll!  It seems
>to me that the scrollbar doesn't recognize the toggle as being there.

Check out the scrollbars chapter in the SunView Programmers Guide (pp.
253-4 in the 4.1 manuals).  You must set the SCROLL_NORMALIZE attribute to
false or it will only scroll to the first element in your choice list.
The section has a nice code example.

Roger Opperman			oppr at cardiac-ra.swmed.utexas.edu



More information about the Comp.sys.sun mailing list