-
- wxPanel::Create(parent, -1);
-
- // create the caption bar, in collapsed or expanded state
-
- _captionBar = new wxCaptionBar(this, caption, icons, -1, style, wxPoint(0,0));
- //_captionBar->SetBoldFont();
-
- if(collapsedInitially)
- _captionBar->Collapse();
-
- _controlCreated = true;
-
- // make initial size for component, if collapsed, the
- // size is determined on the panel height and won't change
-
- wxSize size = _captionBar->GetSize();
- _yPanelSize = size.GetHeight();
- _yLastInsertPos = _yPanelSize;
+
+ wxPanel::Create(parent, wxID_ANY);
+
+ // create the caption bar, in collapsed or expanded state
+
+ _captionBar = new wxCaptionBar(this, caption, icons, wxID_ANY, style, wxPoint(0,0));
+ //_captionBar->SetBoldFont();
+
+ if(collapsedInitially)
+ _captionBar->Collapse();
+
+ _controlCreated = true;
+
+ // make initial size for component, if collapsed, the
+ // size is determined on the panel height and won't change
+
+ wxSize size = _captionBar->GetSize();
+ _yPanelSize = size.GetHeight();
+ _yLastInsertPos = _yPanelSize;