1. [Win32Lib] monitor_list_state procedure not fire?
CChris wrote:
>
> Dan Moyer wrote:
> >
> >
> > Whoops, of course I meant Win32Lib, fingers just went too far.
> >
> > Dan
>
> Not directly, but...
>
> 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"))
>
>
> 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,
I tried your routine, but it won't fire at all for me 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
2. Re: [Win32Lib] monitor_list_state procedure not fire?
Dan Moyer wrote:
>
> CChris wrote:
> >
> > Dan Moyer wrote:
> > >
> > >
> > > Whoops, of course I meant Win32Lib, fingers just went too far.
> > >
> > > Dan
> >
> > Not directly, but...
> >
> > 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"))
> >
> >
> > 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,
>
> I tried your routine, but it won't fire at all for me 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
Hmph. Works for ComboBox[Ex], but not for dropdown lists. I'll check what I can
do about it.
CChis
3. Re: [Win32Lib] monitor_list_state procedure not fire?
CChris wrote:
>
> Dan Moyer wrote:
> >
> > CChris wrote:
> > >
> > > Dan Moyer wrote:
> > > >
> > > >
> > > > Whoops, of course I meant Win32Lib, fingers just went too far.
> > > >
> > > > Dan
> > >
> > > Not directly, but...
> > >
> > > 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"))
> > >
> > >
> > > 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,
> >
> > I tried your routine, but it won't fire at all for me 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
>
> Hmph. Works for ComboBox[Ex], but not for dropdown lists. I'll check what I
> can do about it.
>
> CChis
<grin> thanks! :)
Dan
4. Re: [Win32Lib] monitor_list_state procedure not fire?
- Posted by CChris <christian.cuvier at a?riculture.?ouv.fr>
May 13, 2008
-
Last edited May 14, 2008
Dan Moyer wrote:
>
> CChris wrote:
> >
> > Dan Moyer wrote:
> > >
> > > CChris wrote:
> > > >
> > > > Dan Moyer wrote:
> > > > >
> > > > >
> > > > > Whoops, of course I meant Win32Lib, fingers just went too far.
> > > > >
> > > > > Dan
> > > >
> > > > Not directly, but...
> > > >
> > > > 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"))
> > > >
> > > >
> > > > 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,
> > >
> > > I tried your routine, but it won't fire at all for me 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
> >
> > Hmph. Works for ComboBox[Ex], but not for dropdown lists. I'll check what I
> > can do about it.
> >
> > CChis
>
>
> <grin> thanks! :)
>
> Dan
The events fire correctly now. I'll code isDropped() after dinner I think, it
will work now.
CChris