![]() |
DateTimePicker open Combobox |
Post Reply ![]() |
Author | |
Auge_Ohr ![]() Groupie ![]() Joined: 20 December 2008 Status: Offline Points: 65 |
![]() ![]() ![]() ![]() ![]() Posted: 07 March 2009 at 11:12pm |
hi,
i just test DateTimePicker Control. it seemīs me like a Dropdown Combobox. If i use it with FlatEdit in a Form, and User reach DTP Control, he/she have to press Dropdown Button. now i try to "Popup" DateTimePicker "WHEN" Control become Focus ( i meen simulate "Dropdown") but Control does not react on: PostAppEvent -> SendMessage PostAppEvent( xbeP_Keyboard,xbeK_ALT_DOWN,,oDate) where oDate is my activeX Control. i also read about :DroppedState := True and :SetDropDownListStyle(True) but it seemīs not belong to DateTimePicker Control i think i send my xbeK_ALT_DOWN Event to wrong Object oDate ... oDate:Combobox ??? is there a Solution ? |
|
greetings by OHR
Jimmy |
|
![]() |
|
Auge_Ohr ![]() Groupie ![]() Joined: 20 December 2008 Status: Offline Points: 65 |
![]() ![]() ![]() ![]() ![]() |
hi,
is there no Way to DateTimePicker "open" Combobox with SendMessage ? |
|
greetings by OHR
Jimmy |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Try to call
DefWindowProc(WM_SYSKEYDOWN, VK_DOWN, 0);
for Picker. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Auge_Ohr ![]() Groupie ![]() Joined: 20 December 2008 Status: Offline Points: 65 |
![]() ![]() ![]() ![]() ![]() |
hi,
thx that is what iīm looking for, BUT the 1st Parameter Hwnd is "missing" ? http://msdn.microsoft.com/de-de/library/ms633572(en-us,VS.85).aspx it is the oDatePicker:hwnd so you can use // // this will "open" DropDown of DatePicker Combobox // SendMessageA(oPick:hwnd, WM_SYSKEYDOWN, VK_DOWN,0) thx for help |
|
greetings by OHR
Jimmy |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |