10-16-2017 07:39 AM
I'm using a tab control, and I have two tabs that I would like to have the same button on. I saw you can move the button on top of the tab control, but that makes the button visible on every tab. Is there a way to make it visible on only selected tabs, or is there a way to make two buttons and have them linked to the same event? It seems like a waste to have to copy everything for that case, and have to make a new event for the extra button.
10-16-2017 08:09 AM
The simplest thing is to create two buttons. If you manage button clicks in an Event Structure (recommended), just define a single case for both Button1_ValueChange and Button2_ValueChange. If you poll the button values, wire the OR of the two values to a Case Structure.
10-16-2017 08:10 AM
Yes, you can add several events to one event case of the event-structure. Just click "Add event" during the editing of an event case and then select another event source.
Another idea would be to monitor, which tab page is active and to show your button just on those pages that you would like your button to appear and hide it on the other ones. Use the property node "visible" for that.
Regards, Jens
10-16-2017 08:10 AM
Hi guy,
Is there a way to make it visible on only selected tabs,
Yes.
You can use property nodes of the button to make it (in)visible depending on the selected tab.
or is there a way to make two buttons and have them linked to the same event?
Yes.
You can assign several controls to just one event case.