Print Page | Close Window

DateTimePicker open Combobox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=13609
Printed Date: 07 July 2024 at 1:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: DateTimePicker open Combobox
Posted By: Auge_Ohr
Subject: DateTimePicker open Combobox
Date 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



Replies:
Posted By: Auge_Ohr
Date Posted: 10 March 2009 at 11:40pm
hi,

is there no Way to DateTimePicker "open" Combobox with SendMessage ?

-------------
greetings by OHR
Jimmy


Posted By: Oleg
Date 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


Posted By: Auge_Ohr
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net