11-08-2014 01:48 AM - edited 11-08-2014 01:49 AM
Hello
I have a problem with labview, can you help me?
I want open a tab control object, to import some property in an array. but, I want open it, when I click on an object like a tank.(actually, first, it is invisible and by click on the object, will be visible)
how can I do it?
I think, I can do it, with a push button or a switch with same size to a tank or any object I use, but with invisible color! is it possible or any new suggestion?
Best Regards
Solved! Go to Solution.
11-08-2014 02:01 AM
What is a "tab control object"?
What is the meaning of "open"?
What is "import a property"?
You can probably use a mouse down event .
11-08-2014 02:09 AM - edited 11-08-2014 02:12 AM
I attached a picture in the last post.
tab control is an object in the containers pallet in control parts. it is a page with desierd number of tabs. in my project, it contain an array that I can write numbers in. this numbers are my property. I invisible tab control at first. I want visible it, when click on the tank or other objects. could I explain better?
11-08-2014 02:24 AM
I know what a tab ontrols is, I just did not understand the "open" part. A tab control is not something that can be opened or closed.
Numbers are the values of the array. The word properties does not sound right in this context.
As I said, you can use an event structure. Create a mouse-down event on the tank and change the visible property of the tab control when it happens..
11-08-2014 02:36 AM - edited 11-08-2014 02:38 AM
tnx altenbach
can you explain more? how can I build a mouse-down event by event structure? by the way, I dont want visible control tab, every time that my mouse position pass on the tank. how work mouse-down event ?
Best Regards
11-08-2014 03:04 AM
See if the attachment helps the conversation along. Clicking on the top two buttons will show tab1 or tab 2 and you won't have to have the tabs visible. You could just as easily use a mouse down event from your tank control / indicator.
11-08-2014 03:30 AM
tnx Zwired1
.but I have a lot of these tanks. i want have a beauty page that user choose each tank, set property, and then close property node. I want increase it's grace.
can you explain mouse down event? and how it work? is it suitable for my goal?
Best Regards
11-08-2014 04:03 AM
It seems you may be planning on having a tab for every one of a large number of tanks? I would generally recommend against doing that. What is easier from a programming and maintenance standpoint is to have one set of indicators/controls and change the information you display when the user clicks on a different tank. You might consider keeping the information for a tank in a cluster and then all of the info for all of the tanks could be kept in an array of these clusters.
Please read the help files for event structures. That should answer your questions about "mouse down" more completely than I ever could.
11-08-2014 10:15 PM
Is not possible invisible color of button or swithch?
11-08-2014 10:39 PM
Certainly it is possible. Hold down <shift> and right click on your front panel to bring up the auto tool and select the paint brush.
How does this relate to your earlier questions? Are you wanting to put an invisible Boolean(s) over the top of the tank control(s)? You should use the tank's "mouse down" event instead. Note, this is one advantage of the "mouse down" event -- you do not need a value change for the event to fire (and therefore the clicked-on object to could also be an indicator).