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

Small CalendarResources Problem

 Post Reply Post Reply
Author
Message
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Topic: Small CalendarResources Problem
    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
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: 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.
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.046 seconds.