Re: [Win32Lib] Month Calendar control: how to exclude "autofire", catch month sele

new topic     » topic index » view thread      » older message » newer message

Never mind, while making a "stub" program to demonstrate the problem, I
found a solution.

Dan wrote:
> Derek, et al,
>
> I need to both exclude the "autofiring" of the month control, and catch
both
> the user selection of a date and the user selection of "change month".
> Testing params length can exclude "autofire", but at the same time
excludes
> "change month", which I need.  Any way to do this??
>
> I do notice that when "autofire" happens there is just ONE "onchange"
event,
> with param length = 0, but on either user select date or user select
change
> month there are TWO "onchange" events, one after another, first one is
param
> length = 0, second one is param length = 2, but I haven't been able to
> figure out how to *use* that info.  And there would seem to be a potential
> problem of an "autofire" event happening in the middle of a user
selection,
> which could mess up any "counters" used to try to distinguish between a
> single onchange event & a doubled up one.
>
> What I also need to be able to do is to know both the switched to and
> switched from date, (see: [Win32Lib]  month control:  event LeftDown not
> work?), is there some way I can do that??  I tried using a variable
> "PreviousDate", but couldn't get it to be maintained correctly, with all
the
> "double firing" & "autofiring" going on.  Maybe there is some use of the
> month control which gives BOTH switched from & switched to date, instead
of
> just "current" selected data??
>
> Dan Moyer
>
>
>
>

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu