LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to make a .jpg "clickable"

Hi everyone,

 

I hope I'll be clear enought my english is a bit rusty.  :mansad:

 

So here is my problem, I got a picture of a 96 pits tablet, I would like

to select one or few pits only by clicking on them. When a pit is selected

a circle appear above it.

I've already be able to do it with a menu but it's not really user friendly.

Beside I'd like to able able to change my picture and easily adapt my VI for

.jpgs of 6, 12 and 24 pits tablet.

 

I'm joining an exemple to my post

 

Thx by advance for the attention you'll pay to this post.

0 Kudos
Message 1 of 4
(2,680 Views)

I see two ways:

Customize buttons with small pictures 

or

Use the picturecontrol and the picture functions together with mouse click events ... 

 

There has been a thread about something similar ... alarming ??

 

Ben is collecting some good picture treating stuff  here

 

http://forums.ni.com/ni/board/message?board.id=BreakPoint&thread.id=14&jump=true

Message Edited by Henrik Volkers on 04-23-2010 11:26 AM
Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 2 of 4
(2,673 Views)

One easy solution is to place a picture ring and use a normal Value change event. Depending on how you want it to react it could be a very easy solution.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 4
(2,664 Views)

@ Henrik

Thanks a lot for your link I find exactly what I needed. In fact the main thing was to get the relative position of

the mouse when passing over the .jpg .

 

 

@ Yamaeda 

Combined to the solution I found on the topic that Henrik linked, I got my answer and manage to finish my VI.

I overlay the primary .jpg with several circle by using the "draw arc vi" and memorise what

I've selected into a boolean array.

 

So I'd like to thank you both. It was really helpfull.

 

Greetings from France

Z

Message 4 of 4
(2,627 Views)