Hello,
I want to make a reusable menu bar with 2 buttons (for now). Lets call it All-Or-Group (as seen below)
The onRelease method for each button is set to these slot Methods and they call SwitchToDialog like this (for onGroupButton):
var Core::Group newDialog = new Application::Dialog_LightControlGroup;
SwitchToDialog( newDialog, null, null, null, null, null, null, null, null, null, false );
Then the Application::AllOrGroup Components are used in the respective Dialogs like so:
Q1. However, when running in the prototyper, the buttons does not switch the dialogs as expected. Instead it is showing just a sub section of the screen (the same bounds set on the All-Or-Group) GUI components. What am I missing?
I have looked at the examples in managing-dialogs, but for each of them the buttons are individually repeated and the Slot method is declared per-Dialog.
I wanted to have one place to define the options and one place to update the visuals and behaviours of the buttons.
Q2. Also, while the All or Group buttons are shown in their respective dialog, I wanted the button show its "FaceActive" bitmap as an indicator for the user, as configured in the PushButtonConfig. What is a good way to do this?
Thank you for everyone's time.