Web listbox scrollbars

After a frustrating 2 days trying to get the container control to act as a drop down menu, I have decided to use the web listbox as a menuing system . My question is; how do you turn off the scroll bars on the web listbox? Answers indicating that I should use the Scrollbars property will be deemed neither acceptable or accurate.

There is simply no ScrollBar property to WebListBoxes.

To prevent the appearance of the ScrollBar simply limit the number of items so they don’t exceed the length of your menu. This is the logic of a menu BTW.

You can also create menus with read only TextAreas but the ScrollBar is the same.
Probably the best is sets of read only TextFields arrays stacked one above the other, which will not have scrollbars. Use webstyle to make the borders the same color of the background so it all shows as one box.

But, why not simply use a Popup Menu ?

[quote=105691:@Michel Bujardet]But, why not simply use a Popup Menu ?

[/quote]
Thanks for the suggestion Michel, but the popup menu looks ugly and does not have the functionality I am looking for. If you want to see what I am trying to emulate, have a look at my current site www.simquip.com

Good. This is the way to go. A picture is worth a thousand words :slight_smile:

I suppose you refer to the drop down menu on top of the page, like the “Products” drop down, with its hierarchical box that pops up on the side when selecting ‘Switches’.

The Read Only TextField array is the best way to emulate that, with a WebStyle that centers the text and make the background light grey, and some code in the MouseEnter/MouseExit to manage the change of color of boxes when mouse hovers them. I just quickly tried, and the result is extremely close.

I guess you can automate that by using a method that uses New to create as many instances of the elements in the menu and uses arrays to hold captions.

after[quote=105713:@Michel Bujardet]The Read Only TextField array is the best way to emulate that, with a WebStyle that centers the text and make the background light grey, and some code in the MouseEnter/MouseExit to manage the change of color of boxes when mouse hovers them. I just quickly tried, and the result is extremely close.[/quote]

I followed up on your earlier suggestion using weblabels instead of textfields and it is starting to look like what I am really after
Thanks a ton for your suggestion