MartinGreil Posted November 9, 2008 Report Share Posted November 9, 2008 Hello, is it possible to create a Boolean control, with a non square outline? (e.g. Jigsaw , PAC-MAN , Star …) I'm thinking about importing a picture which has transparent pixels. The control must only respond on mouse clicks inside the control e.g. not in PAC-MAN's mouth. How did NI create the 'Modern Style' Vertical Toggle Switch? It has the desired behavior. I tried to customize it, but after picture import (*.PNG) the clickable area expands to the full square. Greetings Martin Quote Link to comment
Yair Posted November 10, 2008 Report Share Posted November 10, 2008 I can't look at the moment, but are you sure the toggle switch only responds to clicks on itself? It's quite possible that it has a bounding rectangle which is simply close to the graphic. Anyway, even if it does, it is implemented in C using vector graphics, so you can't duplicate that exact effect. You can import vector graphics into LabVIEW, but I don't remember if it does what you want. You can see more about this here. Quote Link to comment
LAVA 1.0 Content Posted November 11, 2008 Report Share Posted November 11, 2008 QUOTE (Yair @ Nov 9 2008, 01:16 PM) I can't look at the moment, but are you sure the toggle switch only responds to clicks on itself? It's quite possible that it has a bounding rectangle which is simply close to the graphic. Anyway, even if it does, it is implemented in C using vector graphics, so you can't duplicate that exact effect. You can import vector graphics into LabVIEW, but I don't remember if it does what you want. You can see more about this http://forums.ni.com/ni/board/message?board.id=170&message.id=231915' target="_blank">here. I can confirm that for you. I have been using your technique published in the Nugget you cited with wmf files I create using PowerPoint so that I can specify the transparent color. In fact it alomst work "too good" if your graphics are mostly transparent, you will find that it is mostly a pain to find a sweet spot. Ben Quote Link to comment
MartinGreil Posted November 17, 2008 Author Report Share Posted November 17, 2008 One week and some very long nights later: I have to give up - it seems to be impossible to solve this problem.(also no success with word or powerpoint 2003) I will call the NI-Hotline so see if they have the secret dirty trick. cu soon Martin Quote Link to comment
MartinGreil Posted November 21, 2008 Author Report Share Posted November 21, 2008 Final answer from NI (USA): German: leider gibt es für den Endanwender keine Möglichkeit, die Konturen der Bedienelemente frei zu bedienen. Einzige Lösung ist das Überlagern des Controls mit z.B: Decorations, um die nicht aktiven Flächen zu "verstecken", English: Sorry but there is no way to design custom shaped controls. The only way is to use decorations in front of your control to hide nonwanted active click areas. NI said, i should do it with an AxtiveX Control. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.