LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Jorge_C

2D Picture::Take away the frame

Status: Declined

Any idea that has received less than 3 kudos within 3 years after posting will be automatically declined.

Hi!

 

Whenever you are looking for a Mouse Move, Enter or Leave event over a 2D Picture indicator, it takes into account the frame and returns negative values.

 

It is easy to control that, but I think it will be a good idea to give the user the option to choose if the event has to be fired whenever you enter the actual indicator (without the frame). Another option would be to take the frame away of the indicator.

 

What do you think?

 

Thanks!

 

PS: I attach a VI.

Applications Engineer - Certified LabVIEW Developer & Certified TestStand Developer
10 Comments
Jorge_C
NI Employee (retired)

I have had problems with the VI, I attach a picture:

 

picture.jpg

Regards!!

Applications Engineer - Certified LabVIEW Developer & Certified TestStand Developer
elset191
Active Participant

I always use the Coords output of the event, and add [3,3] to it.  Gets me the correct position.

--
Tim Elsey
Certified LabVIEW Architect
Jorge_C
NI Employee (retired)

That's why I say that it is easy to control, but I think it is not the correct behaviour...

Applications Engineer - Certified LabVIEW Developer & Certified TestStand Developer
AristosQueue (NI)
NI Employee (retired)

Is there anything about this that makes the Picture Control different from any other control with a border? I am thinking that this is the same behavior as for all controls, and I don't think it would be wise to make the picture control a special case for Mouse Move. If this is a significant issue, introducing a *different event* that is specific to the picture control -- "Mouse Move Over Actual Image Region" -- seems like a better idea to me.

Jorge_C
NI Employee (retired)

What you suggest sounds good too.

 

I think this is kind of a special indicator. For example, the fact that you have a "Mouse" property to get the actual position of the mouse inside the picture, makes me think that the problem that a customer was experiencing is not unique (but again, easy to handle if you have a little knowledge about LabVIEW).

Applications Engineer - Certified LabVIEW Developer & Certified TestStand Developer
GregR
Active Participant

If you really don't want a frame, you can make the frame and the picture area the same size by using customize mode in the control editor. Then there is no issue.

altenbach
Knight of NI

I too see the current behavior as a problem, because it links a cosmetic change (frame width) to a required hard code change (change in offset).

Snamprogetti
Active Participant

The frame is often unwanted anyway. Ability to show/hide it with a click, just like the toolbars or the caption, would be nice. Mouse coordinates would adjust accordingly

GregSands
Active Participant

In contrast to others, I find the current behavior works nicely.  If the Mouse Position is negative (or greater than Draw Area Size, then it is outside the picture drawing area (on the frame, or also over the label).  That makes it very easy to filter the event.

Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 3 kudos within 3 years after posting will be automatically declined.