Print Page | Close Window

Small CalendarResources Problem

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


Topic: Small CalendarResources Problem
Posted By: McKloony
Subject: Small CalendarResources Problem
Date Posted: 19 November 2009 at 12:12pm

Following Problem:

1) Set a lot of CalendarResources to the CalendarControl (of example twenty users)
2) Generate a xtpBarPopup CommandBar with some xtpControlButtons. Each of te xtpControlButtons must have a longer caption!
3) Set code to the CalenderControl ContextMenu that shows the popup menue, if the user clicks the right MouseButton.
 
If you click the right MouseButton CalendarHitTestInfo.ViewGroup.GroupIndex shows the GroupIndex of the CalendarResource.
 
If the caption of the popup menue hnags over the next CalendarResource column and you click onto the part of the xtpControlButton caption, that hangs over the next CalendarResource, you will get an other CalendarHitTestInfo.ViewGroup.GroupIndex!
 
This behavior could make a lot of trouble, when the user doesn't know this, of example if the user wants to copy & paste a CalendarEvet to an other CalendarResource :-) The same problem occurs, if the user marks a CalendarEvet, moves the mouse to another CalendarResource , clicks with the left MouseButton to mark the CalendarResource and moves the MouseCursor tah again over an other CalendarResource and clicks the right MouseButton here.
 
So, Is there a more secure methode to set the correct ViewGroup.GroupIndex ?
 


-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6



Replies:
Posted By: mdoubson
Date Posted: 03 December 2009 at 7:31pm
If you don't like or trust ContextMenu - use Mouse Left Click to make selection and App Level menu for desired operation: Copy. Cut, Paste, Modify, Delete. You can also disable "in-place edit event by mouse click" and activate edit operation with extra F2 or TAB pressed.

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



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