Grafu Posted November 7, 2014 Share Posted November 7, 2014 Like the title says, I am looking for a way to select a row in a gridlist by clicking the right mouse button instead of the left one. Any ideas how to get the result? Link to comment
-.Paradox.- Posted November 7, 2014 Share Posted November 7, 2014 OnClientClick string button, string state, int absoluteX, int absoluteY button: This refers the button used to click on the mouse, can be left, right, or middle state: This can be used to tell if the user released or pressed the mouse button, where up is passed if the button is released, and down is passed if the button is pushed absoluteX: This refers to the 2D x coordinate the user clicked on his screen, and is an absolute position in pixels. absoluteY: This refers to the 2D y coordinate the user clicked on his screen, and is an absolute position in pixels. Link to comment
Grafu Posted November 7, 2014 Author Share Posted November 7, 2014 That's not an idea. Link to comment
Woovie Posted November 7, 2014 Share Posted November 7, 2014 I know a way to use onClientClick. His answer is perfectly valid. Link to comment
Grafu Posted November 7, 2014 Author Share Posted November 7, 2014 Why not onClientGUIClick, but exactly onClientClick? Link to comment
Woovie Posted November 7, 2014 Share Posted November 7, 2014 Why not onClientGUIClick, but exactly onClientClick? It wouldn't matter if your intent is to emulate a left click. Link to comment
Grafu Posted November 7, 2014 Author Share Posted November 7, 2014 Making it using onClientClick would take too much effort, since you would have to describe the scenario even when the gridlist is scrolled. Link to comment
Saml1er Posted November 7, 2014 Share Posted November 7, 2014 Btw I made a custom dx gridlist. Looks nice and it's better than gui + easy to edit. You have to hold the scroll thumb and move the cursor. If you're having problems with gui grdlist then I can pm you my code and use dx grid list instead of gui. EDIT: onClientGUIClick is triggered when you click an gui element. onClientGUIClick returns 4 parameters. string button, string state, int absoluteX, int absoluteY Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now