Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #830

Re: Drag drop Monthcalendar : how to detect the date

From "Willie Moore" <williem@wmconsulting.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Drag drop Monthcalendar : how to detect the date
Date 2011-04-12 15:00 -0500
Organization Aioe.org NNTP Server
Message-ID <io2b09$csm$1@speranza.aioe.org> (permalink)
References (1 earlier) <73Lop.1108$CS3.686@viwinnwfe01.internal.bigpond.com> <8s27q6dmdoevr3pb4upq3sk9ta6q4up7sa@4ax.com> <io04rh$9t4$1@speranza.aioe.org> <io0dld$uad$1@speranza.aioe.org> <io1l0n$a0f$1@speranza.aioe.org>

Show all headers | View raw


Massimo,

I have probable done it then. I was thinking that it new code. I have 
forgotten a lot over the years <grin>. It took the original holiday code and 
really extended it so it could be dynamically reloaded.

Regards,
Willie

"Massimo Bighelli"  wrote in message news:io1l0n$a0f$1@speranza.aioe.org...

Willie,

I sent all this to you at that time... with the first holidays
implementation by me (preloaded array) with english comments and my name
as bookmark in order to find the changes.

I don't remember if my module is syncronized with your new version.
I remember that I tested the modified PECalendar into ToDo example,
dragging listviewitem on the calendar...

I will see what I can assemble

THX

Massimo



Il 12/04/2011 04:33, Willie Moore ha scritto:
> Massimo,
>
> If you will send me the changed module and a test program that
> demonstrates the drag drop into a calendar I will be happy to
> incorporate it into rightSLE.
>
> Regards,
> Willie
>
> "Massimo Bighelli" wrote in message news:io04rh$9t4$1@speranza.aioe.org...
>
> Dick,
>
> I don't know if there is a solution for the monthcalendar, AFAIK there
> is not drag/drop in MC
> For this reason we adopted the PECalendar from RightSLE (THX Willie) and
> adapted for drag and drop... and with a minor change in order to avoid
> the closure of the calendar when click
>
> easy, few minutes work.
>
> Massimo
>
>
>
> Il 12/04/2011 01:23, D.J.W. van Kooten ha scritto:
>> On Tue, 12 Apr 2011 08:14:46 +1000, "Stephen Quinn"
>> <stevejqNO@bigpondSPAM.net.au> wrote:
>>
>> Hello Steve,
>>>
>>> You don't say WHERE your dragging this date from though nor what
>>> format it's
>>> in.
>>>
>> Basically we do the same as in Outlook 2010: drag a bBrowser line
>> (containing an e-mail) to a date to invoke a planning item on that
>> date, Everything works fine but wheras the treeview (on which we also
>> drop e-mail lines) has this:
>>
>> oTVI := SELF:oDCEmailTreeview:GetItemAtPosition (oPoint) (allowing us
>> to translate coordinates to a knode in the treeview)
>>
>> the Monthcalendar control (which is NOT the datetimepicker Geoff, and
>> not the RightSLE) does NOT have that.
>>
>> I hope that there is a simpler solution than trying to calculate the
>> date from that position ourselves. It seems to be a problem outside VO
>> as well. I saw this suggestion, simulating a mouse doubleclick on the
>> coordinates found:
>>
>> Point loc = monthCalendar1.PointToClient(new Point(e.X, e.Y));
>> IntPtr lp = (IntPtr)(loc.X | (loc.Y<< 16));
>> SendMessage(monthCalendar1.Handle, 0x201, IntPtr.Zero, lp);
>> SendMessage(monthCalendar1.Handle, 0x202, IntPtr.Zero, lp);
>>
>> but I don't know how to translate that to VO.
>>
>> So basically what is dragged to the control is not really important.
>> The fact that we know that something is dragged means we could open
>> our planning item screen, if only we we had a GetItemAtPosition for
>> the monthcalendar.
>>
>> Dick
> 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Drag drop Monthcalendar : how to detect the date D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-11 23:37 +0200
  Re: Drag drop Monthcalendar : how to detect the date "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-04-12 08:14 +1000
    Re: Drag drop Monthcalendar : how to detect the date D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-12 01:23 +0200
      Re: Drag drop Monthcalendar : how to detect the date Massimo Bighelli <info@arcasistemi.it> - 2011-04-12 02:02 +0200
        Re: Drag drop Monthcalendar : how to detect the date "Willie Moore" <williem@wmconsulting.com> - 2011-04-11 21:33 -0500
          Re: Drag drop Monthcalendar : how to detect the date Massimo Bighelli <info@arcasistemi.it> - 2011-04-12 15:44 +0200
            Re: Drag drop Monthcalendar : how to detect the date "Willie Moore" <williem@wmconsulting.com> - 2011-04-12 15:00 -0500
  Re: Drag drop Monthcalendar : how to detect the date "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-11 22:17 +0000

csiph-web