Re: [Gimias-developers] wxCollapsiblePane

2012-05-23 Thread ingrid romera
 Hi,


I will attach you a picture to see my problem, because in the last mail I
don't have attached the picture.

Thank you very much

Ingrid
attachment: error1.png--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Gimias-developers mailing list
Gimias-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gimias-developers


Re: [Gimias-developers] wxCollapsiblePane

2012-05-23 Thread Xavier Planes
Hi Ingrid,

Based on the image you sent me, it seems that there’s a problem with
the parent window of your controls. You need to set the parent window,
depending on the collapsible panel that you include the control. If you have
2 collapsible panels:

  // First collapsible panel:   
  wxCollapsiblePane *collpane1 = new wxCollapsiblePane(this, wxID_ANY,
wxT(Parameters), wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL |
wxNO_BORDER | wxCP_NO_TLW_RESIZE );
// add the pane with a zero proportion value to the 'sz' sizer which
contains it
m_Panel-GetSizer( )-Add(collpane1, 0, wxGROW|wxALL, 5);
wxWindow *win1 = collpane1-GetPane();

label_Smooth = new wxStaticText(win1, wxID_ANY, wxT(Normalized image
smoothing (mm)));
wxFlexGridSizer* grid_sizer_19 = new wxFlexGridSizer(1, 2, 0, 0);
grid_sizer_19-Add(label_Smooth, 0, wxALL|wxEXPAND, 5);
sizer_6-Add(grid_sizer_19, 1, wxEXPAND, 0);

win1-GetSizer()-Add(sizer_6);
win1-GetSizer()-Fit(this);

  // Second collapsible panel:  
  wxCollapsiblePane *collpane2 = new wxCollapsiblePane(this, wxID_ANY,
wxT(Parameters), wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL |
wxNO_BORDER | wxCP_NO_TLW_RESIZE );
// add the pane with a zero proportion value to the 'sz' sizer which
contains it
m_Panel-GetSizer( )-Add(collpane2, 0, wxGROW|wxALL, 5);
wxWindow *win2 = collpane2-GetPane();

label_Smooth = new wxStaticText(win2, wxID_ANY, wxT(Normalized image
smoothing (mm)));
wxFlexGridSizer* grid_sizer_19 = new wxFlexGridSizer(1, 2, 0, 0);
grid_sizer_19-Add(label_Smooth, 0, wxALL|wxEXPAND, 5);
sizer_6-Add(grid_sizer_19, 1, wxEXPAND, 0);

win2-GetSizer()-Add(sizer_6);
win2-GetSizer()-Fit(this);

Best regards,
Xavi


From: ingrid romera [mailto:iromer...@gmail.com] 
Sent: miércoles, 23 de mayo de 2012 13:58
To: gimias-developers@lists.sourceforge.net
Subject: [Gimias-developers] wxCollapsiblePane

Hi, 

I'm trying to create an advanced pane (to hide options) and I have some
problems.
When I create the second pane and I'm opening the first pane who I created,
the text inside first pane is below to the second pane.

I will attach you a picture to see the result of this action.

How can I do for opening the first panel, and it moves it all down?

Thank you very much

Ingrid


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gimias-developers mailing list
Gimias-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gimias-developers