1. Re: [Win21Lib] is list open? (duh, [Win32Lib] !)
Dan Moyer wrote:
>
> CChris wrote:
> >
> > Dan Moyer wrote:
> > >
> > >
> > > Whoops, of course I meant Win32Lib, fingers just went too far.
> > >
> > > Dan
> >
> > Not directly, but...
> > }}}
<eucode>
> > integer list_dropped list_dropped=0
> > procedure monitor_list_state(integer id,integer event,sequence s)
> > if event=w32HDropDown then
> > list_dropped=1
> > else
> > list_dropped=0
> > end if
> > end procdeure
> >
> > setHandler(the_list_id,{w32HDropDown,w32HCloseUp},routine_id("monitor_list_state"))
> > </eucode>
{{{
> >
> > To all users: is an isDropped(id) routine useful? It would apply to
> > menus,lists,
> > combos and ComboBoxEx. Returns 1 if id is showing items, else 0.
> >
> > CChris
> > CChris
>
>
> CChris,
>
> Looks good! Thanks!
>
> Dan
CChris,
I tried your routine, but it won't fire at all on open/close a list.
I'm using Eu2.5 and Win32Lib .60-6; maybe I have to have it look at
any list event & test inside for w32HDropDown,w32HCloseUp? Maybe they're
not in .60-6?
Dan