[solution] Imitation of a Win32 ListBox

A forum for, well, anything really.
Gripes, moans, ideas or just general chit chat. EXCEPT SPAM!!! - Don't just register to post here - IT WILL GET DELETED!!!
Post Reply
vitalyb
Beginner
Beginner
Posts: 2
Joined: Sat Mar 20, 2004 11:11 pm
Contact:

[solution] Imitation of a Win32 ListBox

Post by vitalyb »

For my site I wanted to create an imitation of a ListBox using Milonic, this is what I got:

Closed Listbox (Score sort is selected)
Image

Open Listbox (Notice that now Score is automatically highlighted)
Image

There were 3 main attributes to imitate:

1) The actual visual appearance. While I failed to make an exact visual copy, it does, in many ways, looks like a list box - Seperated first item and list, no border between items etc.

2) The menu item (the one you click on to open the menu) should be the item that's currently selected in the list box and should appear in the listbox once you open it.

3) When you open the listbox the item that was the menu-item should be selected (like demonstrated in the second picture).

If enough people are intersted in the actual implemention, post, and I'll try to rip a working copy from the PHP - I would post it straight away but it would take quite some time and I'd hate to do if no one needs the described options.
ImageVitaly BelmanImage
Image
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Hey Vitaly -

Nice job, and many thanks for taking the time to come back in with the followup and kind offer of the code. Most appreciated.
John
Post Reply