Re: Ugh! I am having trouble visualizing sizers.

new topic     » goto parent     » topic index » view thread      » older message » newer message
vmars said...

BTW: I have made some headway on my (guess I could say 'our') pgm.
The main prob was with these two statements:
add_sizer_to_sizer( panlbox, panlboxt, 1, wx_or_all(wxALIGN_LEFT & wxALIGN_TOP), 0 )
add_sizer_to_sizer( panlbox, panlboxm, 1, wx_or_all(wxALIGN_LEFT & wxALIGN_TOP), 0 )
Not sure why, but they cause the pgm to go Krazy.


Anyways, most things are solved, except for Positioning top & mid buttons.
What I want to do is put button 1&3 on left side, and button 2&4 on right side of parent panel.
Any tips are greatly appr...
Thanks! ...V

You need to use space_sizer() to have blank space take up any slack between the buttons:

  --[this Window sets upon this SIZER]     
  add_window_to_sizer( panlboxt, topbutton01, 0, wxSHAPED, 0 )  
  space_sizer( panlboxt, 0, 0, 1, wxGROW, 0 ) 
  add_window_to_sizer( panlboxt, topbutton02, 0, wxSHAPED, 0 )    
 
  add_window_to_sizer( panlboxm, midbutton01, 0, wxGROW, 0 )     
  space_sizer( panlboxm, 0, 0, 1, wxGROW, 0 ) 
  add_window_to_sizer( panlboxm, midbutton02, 0, wxGROW, 0 )     

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu