News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

mostly Sizer questions

Started by vmars, June 16, 2009, 04:59:24 AM

Previous topic - Next topic

vmars

 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

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

MortenMacFly

Quote from: vmars on June 16, 2009, 04:59:24 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]