Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Select cell using right click
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Select cell using right click

 Post Reply Post Reply
Author
Message
rkaupins View Drop Down
Newbie
Newbie


Joined: 10 October 2006
Location: Australia
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote rkaupins Quote  Post ReplyReply Direct Link To This Post Topic: Select cell using right click
    Posted: 12 October 2007 at 12:56am
Is it possible to right-click on the Calendar and have the cell clicked on selected?
 
I'm using version 10.4.1.
 
Cheers.
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 14 October 2007 at 4:51pm
You can do it programmatically like:

Private Sub CalendarControl_ContextMenu(ByVal X As Single, ByVal Y As Single)

    Debug.Print "On context menu"
   
    Dim HitTest As CalendarHitTestInfo
    Set HitTest = CalendarControl.ActiveView.HitTest
   
    If HitTest.TimePartValid Then
        HitTest.ViewDay.View.Selection.Begin = HitTest.HitDateTime
        HitTest.ViewDay.View.Selection.End = HitTest.HitDateTime
        CalendarControl.RedrawControl
       
        Exit Sub
    End If

...


--
WBR,
Serge
Back to Top
rkaupins View Drop Down
Newbie
Newbie


Joined: 10 October 2006
Location: Australia
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote rkaupins Quote  Post ReplyReply Direct Link To This Post Posted: 14 October 2007 at 9:52pm

Thanks Serge!

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.