Hello Marcel,
thanks for the warm welcome – I’m excited to be part of the B&R community. Thanks for the quick reply to my first post. I’ve tested the property you suggested. Unfortunately, the description here isn’t correct and the actual behaviour differs at least in my version.
In my case, it behaves as follows :
ToggleButton.isToggle = True: When the button is clicked, it becomes active (by ‘active’ I mean that the ‘checkedBackColor’ is displayed) and navigation to the linked page takes place. If I then click it again, the button remains active and does not become inactive as described in the help secti on
ToggleButton.isToggle = False: When the button is clicked, it does not become active and navigation to the linked page takes place. If I click it again afterwards, the button remains inactive.
It appears that the navigation button corresponding to the currently displayed page is always shown as active, regardless of whether the navigation buttons are contained within a navigation bar or not.
To illustrate once again what I need:
- Navigation bar with two buttons: ‘System’ and ‘Diagnosis’
- Pages: ‘System’, ‘System_ChangeSpeed’, ‘System_SetSpeedlimit’ and ‘Diagnosis’
- If I click the ‘System’ button, I want to display the ‘System’ page
- If I click the ‘Diagnosis’ button, I want to display the ‘Diagnosis’ page
- If I click a button on the ‘System’ page to change the speed, I want to display the ‘System_ChangeSpeed’ page but keep the ‘System’ button active (because it is a subpage o f ‘System’)
- If I click a button on the “System” page to set the speed limit, I want to display the “System_SetSpeedlimit” page but keep the “System” button active (as it is a subpage of “System”)
- I do not want to use the “TabControl” widget due to high performance requirements
Many thanks in advance for your help