Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - No hitcode  by using timeline
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

No hitcode by using timeline

 Post Reply Post Reply
Author
Message
Ditte View Drop Down
Groupie
Groupie


Joined: 28 October 2007
Status: Offline
Points: 94
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ditte Quote  Post ReplyReply Direct Link To This Post Topic: No hitcode by using timeline
    Posted: 19 August 2009 at 9:37am
Hi,

it is normal, to get no hitcode if I´m in timeline mode.
In calandar mode I get back the hitcode (CalendarHitTestCode)

Regards



Dittmar



Product: Xtreme SuitePro (ActiveX) 13.4.2

Platform: Win XP

Language: Visual Dataflex 16.1
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 19 August 2009 at 3:46pm
As timeline mode allows to use context menu and passed proper values to EventEditor - sure you can do smth similar:
 
Private Sub CalendarControl_ContextMenu(ByVal X As Single, ByVal Y As Single)
    Dim EventID As Integer
    
    Dim HitTest As CalendarHitTestInfo
    Set HitTest = CalendarControl.ActiveView.HitTest
    
    If Not HitTest.ViewEvent Is Nothing Then
        Set ContextEvent = HitTest.ViewEvent.Event
        'EventID = ContextEvent.Id
        Me.PopupMenu mnuContexEditEvent
        Set ContextEvent = Nothing
    Else
        Me.PopupMenu mnuContextNewEvent
    End If
End Sub
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 22 August 2009 at 1:27am
New (13.2 beta) properties for TimeLineView exposed from MFC to ActiveX - https://forum.codejock.com/uploads/BetaOCX/CalendarBeta13-2.rar

    DATE CalendarControl.TimeLineView.TimeScaleMinTime - get and set
    DATE CalendarControl.TimeLineView.TimeScaleMaxTime - only get as set based on Form width!
    int CalendarControl.TimeLineView.TimeScaleID- get and set
(can be:
xtpTSPID_Day = 1
xtpTSPID_Week = 2
xtpTSPID_Month = 3
xtpTSPID_WorkWeek = 4)


Back to Top
Ditte View Drop Down
Groupie
Groupie


Joined: 28 October 2007
Status: Offline
Points: 94
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ditte Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2009 at 3:01am
Thank you for information
Regards



Dittmar



Product: Xtreme SuitePro (ActiveX) 13.4.2

Platform: Win XP

Language: Visual Dataflex 16.1
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.