Jump to content


Photo

Disable grid selection on right click


  • Please log in to reply
4 replies to this topic

#1 Thrawn123

Thrawn123
  • Members
  • 18 posts

Posted 24 September 2008 - 09:31 PM

Is there a way to disable row selection on right click? All I want to happen when a user right clicks is to have a popup menu shown, but currently, the row is being selected/unselected and the popup is being shown.

Thank you. wink.gif

#2 bertrod

bertrod
  • Members
  • 101 posts
  • Gender:Male
  • Location:Switzerland

Posted 25 September 2008 - 11:30 AM

QUOTE (Thrawn123 @ Sep 24 2008, 10:31 PM) <{POST_SNAPBACK}>
Is there a way to disable row selection on right click? All I want to happen when a user right clicks is to have a popup menu shown, but currently, the row is being selected/unselected and the popup is being shown.

Thank you. wink.gif


In TNxCustomGrid.MouseDown, there is a commented line :
CODE
{! if (Button = mbRight) and (gtMultiSelect in GridState) then Exit; !}


Just uncomment this line wink.gif

#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 25 September 2008 - 03:20 PM

Hello Thrawn,

Unfortunatelly unles using Bertrods quck fix there is no other way.

Durring time users more wanted having selection moved.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#4 Thrawn123

Thrawn123
  • Members
  • 18 posts

Posted 25 September 2008 - 07:47 PM

QUOTE (Boki (Berg) @ Sep 25 2008, 07:20 AM) <{POST_SNAPBACK}>
Hello Thrawn,

Unfortunatelly unles using Bertrods quck fix there is no other way.

Durring time users more wanted having selection moved.

Best regards


I can use this fix for now: if (Button = mbRight) then Exit;

But are there plans to add this as an option? Maybe goDisableRightClickSelect

#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 26 September 2008 - 01:44 PM

Hello Thrawn,

I will see what can I do.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users