Print Page | Close Window

No hitcode by using timeline

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=15011
Printed Date: 20 July 2025 at 6:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: No hitcode by using timeline
Posted By: Ditte
Subject: No hitcode by using timeline
Date 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



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


-------------
Mark Doubson, Ph.D.


Posted By: mdoubson
Date 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 - 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)




-------------
Mark Doubson, Ph.D.


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



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