![]() |
Small CalendarResources Problem |
Post Reply ![]() |
Author | |
McKloony ![]() Senior Member ![]() ![]() Joined: 09 January 2007 Location: Germany Status: Offline Points: 340 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |