Print Page | Close Window

Current Cell

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=8770
Printed Date: 27 November 2024 at 5:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Current Cell
Posted By: koenm
Subject: Current Cell
Date Posted: 13 November 2007 at 12:20pm
I have a popup-menu where i can past a event in my agenda (A avent that's not in my agenda yet), can anyone tell me how i get the time of my current selected cell?



Replies:
Posted By: moe188
Date Posted: 13 November 2007 at 4:12pm
hi,
try something like that:
 
 
Private Sub CalendarControl_SelectionChanged(ByVal SelType As XtremeCalendarControl.CalendarSelectionChanged)
   
    If SelType = xtpCalendarSelectionDays Then
        msgbox  "SelectionChanged. Day(s).",vbinformation
       
        If CalendarControl.ActiveView.Selection.IsValid Then
            msgbox CalendarControl.ActiveView.Selection.Begin,vbinformation
            msgbox CalendarControl.ActiveView.Selection.End, vbinformation
        End If
    End If
    If SelType = xtpCalendarSelectionEvents Then
        msgbox"SelectionChanged. Event(s).",vbinformation
    End If
   
End Sub
 
good luck


Posted By: koenm
Date Posted: 14 November 2007 at 11:43am
I'm working with progress software, i have the property ActiveView, but not de property Selection, anyone another possibility?


Posted By: sserge
Date Posted: 19 November 2007 at 5:43pm
Within your environment you most likely have to call those properties step-by-step:

curView = CalendarControl.ActiveView
curSelection = curView.Selection
if curSelection.IsValid Then
...


--
WBR,
Serge


Posted By: sserge
Date Posted: 19 November 2007 at 5:46pm
Also look into another Progress developers topics, like this one: http://forum.codejock.com/forum_posts.asp?TID=6747 - http://forum.codejock.com/forum_posts.asp?TID=6747

--
WBR,
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