Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - DateTimePicker open Combobox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

DateTimePicker open Combobox

 Post Reply Post Reply
Author
Message
Auge_Ohr View Drop Down
Groupie
Groupie


Joined: 20 December 2008
Status: Offline
Points: 65
Post Options Post Options   Thanks (0) Thanks(0)   Quote Auge_Ohr Quote  Post ReplyReply Direct Link To This Post Topic: DateTimePicker open Combobox
    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
Back to Top
Auge_Ohr View Drop Down
Groupie
Groupie


Joined: 20 December 2008
Status: Offline
Points: 65
Post Options Post Options   Thanks (0) Thanks(0)   Quote Auge_Ohr Quote  Post ReplyReply Direct Link To This Post Posted: 10 March 2009 at 11:40pm
hi,

is there no Way to DateTimePicker "open" Combobox with SendMessage ?
greetings by OHR
Jimmy
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 March 2009 at 2:07am
Hi,
 
Try to call
DefWindowProc(WM_SYSKEYDOWN, VK_DOWN, 0);
for Picker.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Auge_Ohr View Drop Down
Groupie
Groupie


Joined: 20 December 2008
Status: Offline
Points: 65
Post Options Post Options   Thanks (0) Thanks(0)   Quote Auge_Ohr Quote  Post ReplyReply Direct Link To This Post Posted: 11 March 2009 at 5:35am
hi,
Originally posted by oleg oleg wrote:


Try to call

DefWindowProc(WM_SYSKEYDOWN, VK_DOWN, 0);for Picker.

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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.