Skip navigation.
Home
The QNX Community Portal

View topic - Getting the Panes of a Panelgroup

Getting the Panes of a Panelgroup

Isn't the name clear?

Getting the Panes of a Panelgroup

Postby Mr.Green » Tue Jan 27, 2009 1:11 pm

Hi,
I have a Panelgroup that contains several PtPanes:
Panelgroup
Code: Select all
|---Pane 1
|---Pane 2
      |- Label
      |- Pane

etc etc


I want to have access to the Panes that are currently realized within the PanelGroup.

I tried to get them with PtWidgetChildBack and then getting its brothers with PtWidgetBrotherInFront. This doesn't work.
I then tried to traverse the Widget Tree with PtWidgetFamily and then determine the widget type by PtWidgetClass.
That works, but it also returns me every Pane that is being used within a Pane.

I can't use the currently-selected-index of the PanelGroup because some panes could be unrealized.

How can I get all realized Panes of the Panelgroup?

Regards
Mr.Green
Mr.Green
Active Member
 
Posts: 37
Joined: Tue Nov 11, 2008 12:21 pm

RE: Getting the Panes of a Panelgroup

Postby Mr.Green » Wed Jan 28, 2009 7:08 am

I think I found it: loop over the index, reading the widget pointer with PtPGFindPanelByIndex.
Then check if != null and if IsRealized.
Mr.Green
Active Member
 
Posts: 37
Joined: Tue Nov 11, 2008 12:21 pm


Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 1 guest