View Single Post
  #2  
Unread 11-23-2013, 02:21 PM
Garan's Avatar
Garan Garan is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Oct 2010
Posts: 341
While you could use the ZOrder to force them to the top that is not really the best solution. The simplest thing is to make the scrollbars a child of the control that contains the listbox and position them outside of the listbox. That is, if you have a control like windowBackground that contains a control listbox1, then for your vertical scrollbar, you would create a scrollbar and set the parent to windowBackground, height to the height of listbox1, top to the top of listbox1 and left to the width of listbox1.

NOTE, there used to be a bug that caused bound scrollbars to display incorrectly if the control that they were bound to and the scrollbar itself were both direct children of a window so we had to create container controls to avoid this. I do not know if this condition still exists.
Reply With Quote