Page 1 of 1

How to access a Parent of a Panel in this Panel

Posted: Thu Oct 31, 2019 4:32 pm
by Mungo1981
Dear Community,
I have a little Problem with access of a Panel in another Panel.
I'm trying to write that one Panel should repeated be inserted in another Panel.
So far so good. This Works.
But now the User should be posible to remove this Panel.
So far so good.
Just there in the Places of the Old Panels, there are holes.
So I will remove this holes.
So I should call Layout of the base Panel.
But I'm not been in the way to access this Panel.
So the repeated Panel has his Parent in Constructor:

Code: Select all

class  TrackControl: public wxPanel
{
public:
  TrackControl(wxPanel *parent, int id );



So I need now this *parent in a Function of TrackControl.

Any Suggestion for solve.

A little bit confuse
Mungo1981

Re: How to access a Parent of a Panel in this Panel

Posted: Thu Oct 31, 2019 4:47 pm
by Mungo1981
Little bit stupid !!!
I wrote this question and new I will find the Solution by self.

Re: How to access a Parent of a Panel in this Panel

Posted: Thu Oct 31, 2019 6:12 pm
by ONEEYEMAN
Hey,
That's usually how it works. ;-)

Thank you.