CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Where do you add mouse click position info for a button clic

Questions & Answers about IWCGJQuery Suite.

by Luckman » 20 Aug 2014 02:33

Anyone know how to do this? It's got to be simple, my kingdom for a simple answer.
Luckman
 
Posts: 80
Joined: 03 Aug 2014 19:59

by Alexander Bulei » 20 Aug 2014 09:42

Hi Luckman,

Do you mean coordinates (x,y) ?

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Luckman » 20 Aug 2014 15:54

Yes, the coordinates of a right click to pass to ShowContextMenu
Luckman
 
Posts: 80
Joined: 03 Aug 2014 19:59

by Alexander Bulei » 20 Aug 2014 16:01

Hi Luckman,

I do not know why you need them, the contextmenu will be positioned automatically, but you can get them from "event" parameter.

Code: Select all
event.pageX
event.pageY


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Luckman » 20 Aug 2014 16:20

What I was trying to do was follow some UI requirements for having a buttonlist with the far right button being a gear icon that when clicked opens up a popup with three items. So, I am using the click event to call ShowContextMenu but I need to know where to pop it up at. All that said, it doesn't work right anyway because as soon as i click a different button to display another frame, the context menu goes away. I actually thought there was a way to use a dropdown as a button with subitems but I dont see that now.
Luckman
 
Posts: 80
Joined: 03 Aug 2014 19:59

by Alexander Bulei » 20 Aug 2014 16:21

Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to Q & A

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.