Sally Posted April 14, 2007 Report Share Posted April 14, 2007 Hi all, I have extra information in my VI I want to hide all of them , the user need them he can press in one button called " Extra information "to get those information . I can do that but for one infromation only I mean by property node then visible , but this will hide one icon onlyy ... Quote Link to comment
Mellroth Posted April 14, 2007 Report Share Posted April 14, 2007 QUOTE(Sally @ Apr 13 2007, 01:43 PM) I have extra information in my VI I want to hide all of them , the user need them he can press in one button called " Extra information "to get those information... Please post what you have done so far... Is the "Extra information" front panel objects? If so, create control references for all the objects that you want to show/hide, and put all these references in an array. Then use a property node in a loop, to set the "Visible" property for all these objects. /J Quote Link to comment
Tomi Maila Posted April 14, 2007 Report Share Posted April 14, 2007 There are many ways to do this. One very simple is to place this hidden information on a sheet of a tab indicator. Also create one empty sheet to the tab indicator. Select visible sheet by wiring a value to the tab indicator. If you care about look & feel you can make your tab control transparent using the paint tool in the tools menu window. Tomi Quote Link to comment
Sally Posted April 14, 2007 Author Report Share Posted April 14, 2007 JFM , this is exactly what I want ,, Thanks dear but how can I create control references ??? Quote Link to comment
crelf Posted April 14, 2007 Report Share Posted April 14, 2007 QUOTE(Sally @ Apr 13 2007, 10:22 PM) but how can I create control references ??? Right click on the control node on the block diagram and click create>reference. another option is to have the controls off the side of your interface and when the user clicks a show/hide button, resize the front panel to show.hide the controls. Quote Link to comment
Tomi Maila Posted April 14, 2007 Report Share Posted April 14, 2007 QUOTE(crelf @ Apr 13 2007, 03:23 PM) another option is to have the controls off the side of your interface and when the user clicks a show/hide button, resize the front panel to show.hide the controls. nOoooooo! This is really annoying way. I've seen a couple of such LabVIEW UIs and I must admit I really hate them. I'd still vote for the tab control as it's very easy to manage. Simply drag and drop new items there and they get hidden. In addition You can display something else for not so advanced users instead. Tomi Quote Link to comment
Sally Posted April 14, 2007 Author Report Share Posted April 14, 2007 I am intested in JFM way but I could not map the control to the array if there is any example can help then u r thanks Quote Link to comment
Tomi Maila Posted April 14, 2007 Report Share Posted April 14, 2007 Hah. This time I did your homework my own way See the attachment in LV 8.0 or later. Quote Link to comment
Sally Posted April 14, 2007 Author Report Share Posted April 14, 2007 Really it is not a home work, but thnx dear Quote Link to comment
Tomi Maila Posted April 14, 2007 Report Share Posted April 14, 2007 QUOTE(Sally @ Apr 13 2007, 04:56 PM) Really it is not a home work, but thnx dear Tmoi , from where you placed the mode icon ?? Slally, it there in the middle. It's just made transparent. Color it with color tool. Tomi Quote Link to comment
Sally Posted April 14, 2007 Author Report Share Posted April 14, 2007 I mean from where did you get the Mode?>>how did u make it colorless ??sorry Quote Link to comment
Tomi Maila Posted April 14, 2007 Report Share Posted April 14, 2007 It's a tab control under containers palette. To make it transparent, paint it with transparent color (T). Tomi Quote Link to comment
crelf Posted April 15, 2007 Report Share Posted April 15, 2007 QUOTE(Tomi Maila @ Apr 14 2007, 02:09 AM) Slally... 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.