Access the UI components after placement them in the navigation pane
Hello all, your help is needed again.
I built a new pane using function ProNavigatorpanePHolderAdd(), which adds a layout from resource file as expected.
Q#1: How do I make this pane active immediately, without clicking on the pane tab?
Q#2 Do I need to activate this layout before trying to access UI components?
In order to access UI, e.g. close push button from a new pane I do the following:
- define listener class
class CommitClosePushButtonListener : public uifcDefaultPushButtonListener
{
public:
CommitClosePushButtonListener() {}
~CommitClosePushButtonListener() {}
void OnActivate(uifcPushButton_ptr handle);
};
- activate it
ProNavigatorpanePHolderComponentnameGet(pane_name, "CommitCloseBTN", &component_name);
uifcPushButton_ptr commitClose = uifcPushButtonFind(layout_name, component_name);
CommitClosePushButtonListener* commitCloseLis = new CommitClosePushButtonListener();
commitClose->AddActionListener(commitCloseLis);
- define action callback
void CommitClosePushButtonListener::OnActivate(uifcPushButton_ptr handle)
{
//debug print
ProTKFprintf(logfile1, "PushButton\n");
}
Q#3: Why on testing this button I don't get the debug print?
Many thanks for your answers.

