Re: Simple win32lib question
- Posted by Brian Broker <bkb at CNW.COM> Jun 21, 2000
- 424 views
On Wed, 21 Jun 2000 01:15:50 -1200, (censored) wrote: >How do [I] create a List Control using win32lib with the ability for users >to select more than one line? Ie, a multiselect listbox The different listbox styles are: constant LBS_DISABLENOSCROLL = 4096, LBS_EXTENDEDSEL = #800, LBS_HASSTRINGS = 64, LBS_MULTICOLUMN = 512, LBS_MULTIPLESEL = 8, LBS_NODATA = #2000, LBS_NOINTEGRALHEIGHT = 256, LBS_NOREDRAW = 4, LBS_NOSEL = #4000, LBS_NOTIFY = 1, LBS_OWNERDRAWFIXED = 16, LBS_OWNERDRAWVARIABLE = 32, LBS_SORT = 2, LBS_STANDARD = #A00003, LBS_USETABSTOPS = 128, LBS_WANTKEYBOARDINPUT = #400, -- to create a multiple select listbox, use LBS_MULTIPLESEL -- Example: Win = create( Window, "Example", 0, Default, Default, 200, 200, 0 ), Lstbox1 = create( List, "", Win, Win, 10, 10, 170, 100, LBS_MULTIPLESEL ) -- LBS_MULTIPLESEL -> String selection is toggled each time the user clicks -- or double-clicks the string. Any number of strings can be selected. -- Brian