wxBoxSizer (horizontal) won't expand vertically?
Armel Asselin
armelasselin at hotmail.com
Mon Sep 18 07:38:10 PDT 2006
Hello all,
I'm trying to use two sizers (the outer is vertcal, the inner horizontal),
as this:
ICON TEXT
ANIM
LINK
with following code:
wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
wxBoxSizer *hsizer = new wxBoxSizer(wxHORIZONTAL);
hsizer->Add (icon = new wxStaticBitmap (this, ECSPID_Icon, wxNullBitmap),
0, wxALIGN_TOP|wxALIGN_LEFT|wxALL, 5);
hsizer->Add (label = new wxStaticText (this, ECSPID_Label, message.wx()), 1,
wxALIGN_CENTER|wxEXPAND|wxALL, 5);
sizer->Add (hsizer, 0, wxEXPAND|wxALIGN_TOP, 0);
sizer->Add (progress_ctrl = new wxGIFAnimationCtrl (this,
ECSPID_ProgressAnim, animation_file_name.wx()),
0, wxALIGN_CENTRE|wxALL, 5);
sizer->Add (help_link = new wxHyperLink (this, ECSPID_HelpLink,
help_message.wx()),
0, wxEXPAND|wxALL|wxALIGN_CENTRE_HORIZONTAL, 5);
the hsizer vertical size won't expand when the static text is wrapped (being
higher than the icon)...
what do i do wrong?
please help, thx
Armel
More information about the wx-users
mailing list