Print Page | Close Window

Right mouse button select

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=19172
Printed Date: 15 May 2024 at 4:43am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Right mouse button select
Posted By: starzen
Subject: Right mouse button select
Date Posted: 11 November 2011 at 10:20am
am working on implementing a simple context menu into the calendar
 
the context menu itself is not a problem but the control by default doesnt select events when clicked on using the right mouse button
 
i implemented the functionality and it is working but the painting is behind.
 
i do the following in the ContextMenu event
 
ActiveView.UnselectAllEvents
HitTest and get the viewevent under mouse
if it is an event ActiveView.SelectViewEvent for the event
Populate
 
then show the ContextMenu
 
this is working but the selection rectangles on events do not update (old selections stay visible and the new selection is not) until after the context menu closes
 
i tried moving the selection code in MouseUp but the same problem
 
Any idea how to get the screen to refresh the selection rectangles before the context menu shows ?
 
thanks

Mike
 



Replies:
Posted By: starzen
Date Posted: 11 November 2011 at 10:31am
Looks like i am answering my own question
 
RedrawControl did the trick
 
thanks Mike Smile
 



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