ancle Posted July 15, 2004 Report Share Posted July 15, 2004 When I run this example, I click button C ,it shows page 3 and then click button B,it shows page2, but there is a shadow of page3. What happened? Thanks! Download File:post-518-1089877853.vi Quote Link to comment
Michael Aivaliotis Posted July 15, 2004 Report Share Posted July 15, 2004 I've moved this post out of the bug-list section because I don't think it's really is a bug. If others disagree I will move it back. I've modified your example VI (LV7.1) and added a fix. I also converted it to LV7.0 for the other folks in this forum. The problem is that when you hide a page in the tab control, that is currently active, LV doesn't know which tab it is suppose to make the active tab. You, as the programmer, must give LV this information by setting the active tab. I've shown this in the code by adding a property node that always forces the first tab to be active. Download File:post-2-1089913388.vi Quote Link to comment
didierj Posted July 16, 2004 Report Share Posted July 16, 2004 In the case you just wanted to show a certain page programatically and not from a user interaction, then I recomend you just to wire the control itself in the diagram with either 0, 1 or 2. As an option, if you don't want the user to change the tab-page by clicking then hide the tabs (right click on the tab and deselect "visible items>Tabs"). It is easier and less errorprone. Didier Quote Link to comment
ancle Posted July 23, 2004 Author Report Share Posted July 23, 2004 In this case, I changed the program. When I click button A, it shows page 1 and 2. I click page2, but it always shows page1. Help me please. Download File:post-518-1090555008.vi Quote Link to comment
Michael Aivaliotis Posted July 23, 2004 Report Share Posted July 23, 2004 In this case, I changed the program. When I click button A, it shows page 1 and 2. I click page2, but it always shows page1. Help me please. 1207[/snapback] Ah well of course, you want me to write your whole program for you... see attachment (LV70)Download File:post-2-1090557055.vi Quote Link to comment
ancle Posted July 23, 2004 Author Report Share Posted July 23, 2004 Ah well of course, you want me to write your whole program for you... see attachment (LV70) 1209[/snapback] Thanks, Michael. But my button's Mechanical Action must be "Switch When Pressed". Is it possible or not? Quote Link to comment
Michael Aivaliotis Posted July 23, 2004 Report Share Posted July 23, 2004 Thanks, Michael. But my button's Mechanical Action must be "Switch When Pressed". Is it possible or not?1211[/snapback] Why?... Yes, it is possible. Do you want the button to stay down or pop back up? If you want the boolean to pop back up then use a local variable on the boolean and set it to false. Quote Link to comment
ancle Posted July 24, 2004 Author Report Share Posted July 24, 2004 Why?... Yes, it is possible. Do you want the button to stay down or pop back up? If you want the boolean to pop back up then use a local variable on the boolean and set it to false. 1217[/snapback] Because of my program, when the button A stay down then the program will full run(so I need the button stay down)and I will setup some thing in page2. Otherwise, button A pop back up, the program will stop full run. In this case, because I use cluster so I can not create local variable of button. Can you help me,please? 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.