Print Page | Close Window

Select cell using right click

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=8413
Printed Date: 07 October 2024 at 1:31pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Select cell using right click
Posted By: rkaupins
Subject: Select cell using right click
Date 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.



Replies:
Posted By: sserge
Date 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


Posted By: rkaupins
Date Posted: 14 October 2007 at 9:52pm

Thanks Serge!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net