04-23-2010 04:08 AM
Hi everyone,
I hope I'll be clear enought my english is a bit rusty.
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.
04-23-2010 04:22 AM - edited 04-23-2010 04:26 AM
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
04-23-2010 04:32 AM
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
04-23-2010 10:47 AM
@ 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