Re: [Win32Lib] ComboBox drop-down doesn't move with window
- Posted by cafromsw at yahoo.com Jan 28, 2003
- 424 views
I don't know if this helps at all, I just tried 4 or 5 other 'Windows' programs and everyone of them closed the dropdown when I clicked to another part of the window. I guess that way it could never be open during a window move. btw one of my programs with DropDownLists behaves like your demo. Chris --- Dan Moyer <DANIELMOYER at prodigy.net> wrote: > > Below is a demo of a problem I've encountered with > combo-boxes: > > if I make the list drop-down, & then move the > window, the drop-down list > remains where it was instead of moving with the > window, though it is still > functional. Both combos in the demo exhibit the > problem, the first is > "auto" drop-downed, the second has the same problem > if the user clicks on > the drop-down arrow & then moves the window. > > Is this a bug? What's the best way to fix this? > > Dan Moyer > > --<code begins> > -- code generated by Win32Lib IDE v0.14.2 > > include Win32Lib.ew > without warning > > > 300, 0, 0 ) > constant Combo2 = createEx( Combo, "Combo2", > Window1, 44, 64, 148, 420*6, 0, > 0 ) > constant Combo4 = createEx( Combo, "Combo4", > Window1, 208, 64, 148, 20*6, 0, > 0 ) > > > > addItem( Combo2, "Item" & sprint(n) ) > end for > > dummy = sendMessage(Combo2, CB_SHOWDROPDOWN, > False,0) > dummy = sendMessage(Combo2, CB_SHOWDROPDOWN, > True,0) > setIndex( Combo2, 1 ) > > for n = 1 to 5 do > addItem( Combo4, "Item" & sprint(n) ) > > end for > setIndex( Combo4, 1 ) > > end procedure > setHandler( Window1, w32HActivate, > routine_id("Window1_onActivate")) > > > WinMain( Window1,Normal ) > > > > > TOPICA - Start your own email discussion group. > FREE! > > >