Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Right mouse button select
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Right mouse button select

 Post Reply Post Reply
Author
Message
starzen View Drop Down
Groupie
Groupie
Avatar

Joined: 08 October 2008
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote starzen Quote  Post ReplyReply Direct Link To This Post Topic: Right mouse button select
    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
 
Back to Top
starzen View Drop Down
Groupie
Groupie
Avatar

Joined: 08 October 2008
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote starzen Quote  Post ReplyReply Direct Link To This Post Posted: 11 November 2011 at 10:31am
Looks like i am answering my own question
 
RedrawControl did the trick
 
thanks Mike Smile
 
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.219 seconds.