03-02-2009 04:12 PM
Hi.
Is it possible to hide a List Box?
For example I want five overlapping List Boxes and five control buttons, one associated with each list box. When a button is pressed the associated list box should then be made visible.
I could not find a SetCtrlAttribute (panelHandle, PANEL_LISTBOX1, ATTR_HIDE_ACTIVE_ITEM, 0) type command to hide a list box.
How can this be accomplished?
Thanks.
Solved! Go to Solution.
03-02-2009 04:38 PM
I think all you need is ATTR_VISIBLE:
SetCtrlAttribute (panelHandle, PANEL_LISTBOX1, ATTR_VISIBLE, 1);
--Ian
03-02-2009 04:50 PM
That was it. Silly me, I was searching for Hide, Hidden ... not Visible.
Thanks.
03-03-2009 12:30 AM
A possible alternative solution is to use a tab control, with a listbox on every tab panel: only one tab page is visible at a time and you can switch from one to the other simply clickong the desired page to see.
Moreover, you can design the tab control with one tab page only, duplicating it at runtime for the number of desired paged so have in your application: designing the user interface will be greatly simplified.