Right-click event to select |
Post Reply |
Author | |
nighthawk
Senior Member Joined: 11 June 2004 Status: Offline Points: 167 |
Post Options
Thanks(0)
Posted: 04 May 2006 at 12:53pm |
When I right-click an event, I want the event to become selected and then I want to pop up a menu. I have no problem getting the popup menu to appear (using the MouseDown event) but how do I select the event when right-clicking it?
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Something like following:
Also do not forget to redraw a control after selecting an event. Look also at VB sample, CalendarControl_ContextMenu handler. -- WBR, Serge |
|
nighthawk
Senior Member Joined: 11 June 2004 Status: Offline Points: 167 |
Post Options
Thanks(0)
|
Thanks Serge. That mostly works except that even if I call the RedrawControl prior to calling the popup menu, it still won't appear selected until after the popup menu goes away. For example, I modified the CalendarControl_ContextMenu in the sample program as follows:
How do I make it appear selected before the popup menu is displayed? |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
That's a bit strange, but as a workaround try to replace simple call .RedrawControl to:
That should help -- WBR, Serge |
|
TracyP
Groupie Joined: 16 February 2006 Status: Offline Points: 22 |
Post Options
Thanks(0)
|
I have the same problem with v9.81 ActiveX.
When an Event is selected, the Visible trick works. When a time is selected, it does not. |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Thanks, will fix that problem for a next version.
-- WBR, Serge |
|
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 |