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


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

Re: Drag drop Monthcalendar : how to detect the date

From Massimo Bighelli <info@arcasistemi.it>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Drag drop Monthcalendar : how to detect the date
Date 2011-04-12 02:02 +0200
Organization ARCA Sistemi S.r.l.
Message-ID <io04rh$9t4$1@speranza.aioe.org> (permalink)
References <fps6q6lutcv9qb4t09k5k29blj3p0fjnpo@4ax.com> <73Lop.1108$CS3.686@viwinnwfe01.internal.bigpond.com> <8s27q6dmdoevr3pb4upq3sk9ta6q4up7sa@4ax.com>

Show all headers | View raw


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