Jump to content

Right click to select a row on a gridlist


Grafu

Recommended Posts

Posted

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.

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

I know a way to use onClientClick. His answer is perfectly valid.

"The humble beet is the answer to all riddles." - Rolf

Posted
Why not onClientGUIClick, but exactly onClientClick?

It wouldn't matter if your intent is to emulate a left click.

"The humble beet is the answer to all riddles." - Rolf

Posted

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 
  

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...