09-11-2007 01:18 PM
09-11-2007 01:25 PM
Could you post some quick screen shots that mock-up what you want?
There are a number of appraoches that range from the simple to ....
Simple:
Create one of each type, and only show the type they chose
Less-simple:
Create three type defs and rename prior to dynamically opening a VI that uses the type def.
Border-line complicated:
Picture Ring with iamges to match the booleans you want and then act on Mouse down events.
Rediculous (my fovorite):
Use a picture control
So "pick your poison" and let us know what you like.
Ben
09-11-2007 01:32 PM - edited 09-11-2007 01:32 PM
the less complicated simple is my favorite.
Ben could you expnd how you would implement with picture control?
Message Edited by Gabi1 on 09-11-2007 08:33 PM
09-11-2007 01:40 PM
Ben could you expnd how you would implement with picture control?
09-11-2007 01:47 PM
1) All of LV's controls have a method "Get image". This image can be inserted into a picture control. I demonstrated this in the "Obfuse Code" random walk example where I create 135 booleans with different colors and labels.
i remember this one. pretty cool took me some time to figure it out...
http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=147#M147
09-11-2007 01:50 PM
First of all, thank you for your answers.
Ben, the last thing you said it´s exactly what I want, but I don´t need 135 booleans. I think five would be enough.
I need to do a graphic interface where the user can select the type of boolean, the colour, the size and the location in the first VI, and in the next VI, it has to appear the type of boolean (colour and size too) in the different positions the user marked with the mouse. But it has to change the position, so it only has to appear one boolean per time.
Thank you
Regards
09-11-2007 01:55 PM
Ben, the last thing you said it´s exactly what I want, but I don´t need 135 booleans. I think five would be enough.
"
Then start with the example in the thread Gabi1 linked.
Start stripping it down until you under stand how just one button works. Then build up from there using more than one boolean as the "prototype".
If you get stuck, post some code that we can look at and someone will "give you a push".
Ben
09-11-2007 03:02 PM - edited 09-11-2007 03:02 PM
@Sawyer wrote:
There are some different types of booleans, the square one, the round one.... then, the user have to select among them so in the next VI it only appears the selected boolean.
OK, we have the "how?" answered, which leaves is with the "why?" 😮
Is this really something that is crucial to the operation of the VI or are you just trying to duplicate "Skins" (e.g. like in media player). To spend a lot of time to implement something like that, I would need to have a really, really good reason first. 🙂
Message Edited by altenbach on 09-11-2007 01:02 PM
09-12-2007 05:01 AM