Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Current Cell
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Current Cell

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


Joined: 13 November 2007
Location: Belgium
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote koenm Quote  Post ReplyReply Direct Link To This Post Topic: Current Cell
    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?
Back to Top
moe188 View Drop Down
Senior Member
Senior Member


Joined: 27 March 2006
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote moe188 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
koenm View Drop Down
Newbie
Newbie


Joined: 13 November 2007
Location: Belgium
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote koenm Quote  Post ReplyReply Direct Link To This Post 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?
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: 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
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: 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

--
WBR,
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.188 seconds.