` Printed Icetips Article

Icetips Article



Windows API: Drop a combolist down when selected
2006-10-11 -- Jim Kane
 
> Anyone knows how to have a combo list box auto open up when the field is
> selected?
>
> I have tried "press(downkey)" on the selected embed but this only adds a
> 40 to the contents of the field.

 Map
   Module('api')
     sendmessage(long,long,long,long),long,proc,pascal,name('sendmessageA')
   End
 end
hwnd long,auto
 code
hwnd=?yourdropbox{prop:handle}
!this will drop it
sendmessage(hwnd,14fH,1,0)

!this will close it:
sendmessage(hwnd,14fH,0,0)



Printed November 23, 2024, 10:18 pm
This article has been viewed/printed 35223 times.
Google search has resulted in one hit on this article since January 25, 2004.