justinmind-logo
 
Upvote 2

Right Click Menu / Dynamic action at any given location of cursor

Answered Victor Conesa 9 years ago

I'm trying to create a right click menu where the menu will appear where my mouse cursor is. Is that possible? If not, is it possible to create a custom tooltip that will appear in every cell of a column if i hover over it? Thanks a bunch!

Replies (10)
photo
2

Is not possible yet but it's one of the things at the very top of our product's backlog so we will probably add it really soon.

photo
1

Thank you very much! i know my company will be happy to hear that! Probably a question you get all the time, but do you know about when and do you need "testers" for that feature? Thanks again!

photo
1

Glad to hear it's a top priority.

photo
1

The recently released Justinmind version 6.4 includes two new constants: "Cursor X" and "Cursor Y".


Using these constants and a calculated "Move to" action will allow you to create a menu that will appear on the mouse cursor position.


You can find more info about this update on our blog:


http://blog.justinmind.com/wireframe-...

photo
1

A nice thing about the "Cursor X" and "Cursor Y" constants is that you don't have to worry about calculating the positions of deeply-nested or scrolling components. You can just pop up the desired element at the cursor or an offset from the cursor.

photo
1

How can you set the offset to the cursor? And how can you set the mouse 'down' and 'up' events to the right mouse button?

photo
1

I'm not sure what you mean by "How can you set the offset to the cursor?", but I think I can answer your second question:


When you add an event to a component (a button, say, or hotspot — whatever you want to be right-clickable), you have the following mouse options:


690b75e355c07551fc467b86f1a294db


There is no separate "On Mouse Down" or "On Mouse Up" for the right mouse button, just "On Right Click" (that is, Mouse Down-and-Up). It does not appear to be possible to create an event for "On Right Mouse Down" or "On Right Mouse Up" at this time.


Also, I noticed that the icon for "On Right Click" is the same as "On Click", which seems like a very, very small UI bug.


FYI: I filed a request to have "on Right Mouse Down" and "on Right Mouse Up" added to the available options.

photo
1

Hello everyone,


What I did to test this feature:


1) Create a button


2) Create an action for the button (On right click > Move)


3) Set Top = Cursor Y and Left = Cursor X


As mentioned on the asnwers above, I could understand that there would be the "Move to..." action when choosing "on right click". However, when I change the positions of the target (let, top) to calculated, there is only the possibility to choose one constant (Cursor X or Cursor Y) for each (Left and Top), there is not the expression beginning with "Move to..." as shown in http://blog.justinmind.com/wireframe-...


When I set Top = Cursor Y and Left = Cursor X, it sends the target far below on the screen.


Is there anything that I'm missing?


Thank you very much!


3e93dcb566889979019e5399b9d7d67b

photo
1

Where do I find the "Move to" action? I could only find the "Move" after choosing the "on right click". So I could not build the expression


Thanks in advance!

photo
1

Hello everyone!


I was able to solve this issue.


The problem occurs when you group different widgets with the context menu (let's say, a single column table) in the Outline organization layers,


To make this feature work, you can not group the context menu in any group, you have to leave it as a stand alone layer in Outline.


Hope it helps!

Leave a Comment
 
Attach a file