Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #10054
| Path | csiph.com!2.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Karl-Heinz" <invalid@invalid.invalid> |
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Month selector |
| Date | Wed, 14 Dec 2016 19:26:24 +0100 |
| Lines | 54 |
| Message-ID | <ebdh6jFil8dU1@mid.individual.net> (permalink) |
| References | <b30ab6dc-18be-4a96-864c-3bcbdc4c8cb8@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; format=flowed; charset="UTF-8"; reply-type=original |
| Content-Transfer-Encoding | 8bit |
| X-Trace | individual.net r8URR96BFilMGe2AVMamvACT7jK6M6aIsHoLLZ/iyTmw8GMAo= |
| Cancel-Lock | sha1:oMjJNytnHO1KOS2SIY3as1r9+48= |
| In-Reply-To | <b30ab6dc-18be-4a96-864c-3bcbdc4c8cb8@googlegroups.com> |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| Importance | Normal |
| X-Newsreader | Microsoft Windows Live Mail 16.4.3564.1216 |
| X-MimeOLE | Produced By Microsoft MimeOLE V16.4.3564.1216 |
| Xref | csiph.com comp.lang.clipper.visual-objects:10054 |
Show key headers only | View raw
Hi ??????
> i'm trying to show the window that appears when
> a user clicks on month using datetimepicker.
> < 2016 >
> jan feb mar aprl
> may jun jul aug
> sep oct nov dec
Here“s the code to show the dropdown calendar in month view. More view
options are mentioned below.
--------------
METHOD ControlNotify(oEvent) CLASS <YourWindowClass>
LOCAL pNMHDR AS _winNMHDR
LOCAL hMonthControl AS PTR
DO CASE
CASE DWORD ( oEvent:NotifyCode ) == DTN_DROPDOWN
pNMHDR := PTR ( _CAST , oEvent:lParam )
IF pNMHDR.hwndFrom == <oYourDTPicker>:Handle()
hMonthControl := SendMessage(<oYourDTPicker>:Handle() ,
DTM_GETMONTHCAL , 0 , 0L )
SendMessage( hMonthControl, MCM_SETCURRENTVIEW, 0 , MCMV_MONTH )
ENDIF
ENDCASE
RETURN SUPER:ControlNotify(oEvent)
-------------
missing defines:
--------------
DEFINE MCM_SETCURRENTVIEW := MCM_FIRST + 32
DEFINE MCMV_CENTURY := 3
DEFINE MCMV_DAY := 0
DEFINE MCMV_DECADE := 2
DEFINE MCMV_MONTH := 1
Regards
Karl-Heinz
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Month selector ccyasa.sbassano@gmail.com - 2016-12-14 07:33 -0800
Re: Month selector "Karl-Heinz" <invalid@invalid.invalid> - 2016-12-14 19:26 +0100
Re: Month selector ccyasa.sbassano@gmail.com - 2016-12-14 13:04 -0800
Re: Month selector ccyasa.sbassano@gmail.com - 2016-12-15 04:47 -0800
Re: Month selector "Karl-Heinz" <invalid@invalid.invalid> - 2016-12-15 18:25 +0100
Re: Month selector ccyasa.sbassano@gmail.com - 2016-12-15 10:23 -0800
Re: Month selector "Karl-Heinz" <invalid@invalid.invalid> - 2016-12-15 19:24 +0100
Re: Month selector ccyasa.sbassano@gmail.com - 2016-12-15 10:34 -0800
Re: Month selector ccyasa.sbassano@gmail.com - 2016-12-17 03:47 -0800
Re: Month selector D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2016-12-18 18:01 +0100
Re: Month selector "Karl-Heinz" <invalid@invalid.invalid> - 2016-12-19 08:58 +0100
Re: Month selector ccyasa.sbassano@gmail.com - 2016-12-20 11:39 -0800
Re: Month selector "Karl-Heinz" <invalid@invalid.invalid> - 2016-12-21 06:47 +0100
csiph-web