Canceling a click |
Post Reply |
Author | |
Shawshank
Senior Member Joined: 16 October 2005 Status: Offline Points: 117 |
Post Options
Thanks(0)
Posted: 04 July 2007 at 1:39am |
I have a RC with a list of items. Each time a user selects an item it becomes highlighted. In some cases I need to cancel a user's click or selection. In these cases I need the item that the user clicked to NOT become highlighted. Instead, I need the item that was holding focus to remain selected. I can't seem to find a way to cancel this new selection. I have tried adding a timer to the form and then keeping up with which item is selected. When I encounter a need to cancel the selection I use the following code to attempt to override the new selection taking place:
RC.Rows.Row(iRowSelection).Selected = True
RC.Populate
This code is in the timer event. Unfortunately, it doesn't maintain the selection. I see that the proper value is in iRowSelection and that the code executes yet the RC "overrides" me and makes the new selection anyway. Is there a way to stop this behavior when one needs to?
Shawshank
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
Something like this works for me:
-- 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 |