Author Topic: mostly Sizer questions  (Read 2746 times)

vmars

  • Guest
mostly Sizer questions
« on: June 16, 2009, 04:59:24 am »
 I am used to IDE's from my Delphi5 days.
 So I created a new project.
 Clicked on wxSmith menu, selected AddFrame.
 Funny thing is under Resources window, it added 3 wxFrames.
 Next I added wxPanel, and again it added 3 wxPanels.
 Then added a wxSrolledWindow. Ah, only 1 displayed.
 Next I want to add a slew of Buttons or Notebook Tabs to the wxSrolledWindow.

? I am new to sizers, does the Sizer go before the wxSrolledWindow or on top of   wxSrolledWindows?

 I plan to have the Frame divided into two = parts, top and bottom.
  wxSrolledWindow in top, and a TextControl in bottom of Frame.

It seems like the Sizer should go before the wxSrolledWindow, and both wxSrolledWindow and TextControl set on top of that (GridSizer?). And then another Sizer on top of wxSrolledWindow, to manage all those Buttons.

? Does that layout sound correct? 
? I am concerned where the Sizers go. Beneath the thing it sizes or on top of the thing it sizes?

 Ultimately, I want the GUI to look like an old program I wrote in Delphi/Pascal,
 here:  http://www.flickr.com/photos/vmars956/

Also, are there any CodeBlocks (windows) tutorials out there?

Thanks! ...Vern

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: mostly Sizer questions
« Reply #1 on: June 16, 2009, 05:05:03 am »
WxSmith tutorials
http://wiki.codeblocks.org/index.php?title=WxSmith_tutorials
See http://wxforum.shadonet.com/ for more wxWidgets related stuff.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: mostly Sizer questions
« Reply #2 on: June 16, 2009, 08:19:10 am »
? Does that layout sound correct?  
Sorry to say this, but it is not related to Code::Blocks and thus violates our forum rules. Please start with a wxWidgets tutorial. There is even a book (of Julian Smart et. al) available for free that explains design and development with wxWidgets very well. Just start at wxWidgets.org.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ