Re: [WIN] how make empty combo not "open" (dropdown) if clicked on?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Euman,

Using sendMessage to get the combo count didn't work any better than my
original use of getCount, but that's pretty reasonable, right?  getCount
probably *uses* sendMessage(Combo3,CB_GETCOUNT, 0,0) .  The problem seems to
be that even if it's told by "dummy = sendMessage(Combo3,CB_SHOWDROPDOWN
,False,0)"
to close the list down, somehow the "windows" action of opening the combo on
click predominates, *unless* you make windows ignore its normal action by
Derek's suggestion of returnValue(0) if count = 0.

Thanks for trying, though :)

Dan


----- Original Message -----
From: <euman at bellsouth.net>
To: "EUforum" <EUforum at topica.com>
Sent: Saturday, October 20, 2001 11:46 PM
Subject: Re: [WIN] how make empty combo not "open" (dropdown) if clicked on?


>
> Correction actually addition to the code I sent...
>
> procedure Combo3_onEvent (atom event, atom wParam, atom lParam)
>   if event = CBN_DROPDOWN then
>     if sendMessage(Combo3,CB_GETCOUNT, 0,0) > 0 then
>        dummy = sendMessage(Combo3,CB_SHOWDROPDOWN , True,0)
>    else
>        dummy = sendMessage(Combo3,CB_SHOWDROPDOWN ,False,0)
>     end if
>   end if
> end procedure
> onEvent[Combo3] = routine_id("Combo3_onEvent")
>
> Euman
> euman at bellsouth.net
>
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu