List Info

Thread: Doing something wrong?




Doing something wrong?
country flaguser name
United States
2007-03-30 14:41:11

Hi,
I set up a small project to test aui features of DB 4.05. I add
a main frame with aui manager on. Then I add a menubar with 1 menu,
an aui toolbar with 1 button (ps. if i don't give button a bitmap,
gives a debug error), toolbar is aui managed. Then a statusbar. Then I
add an auinotebook, which is aui managed. I specify separate files for
the notebook, and give a new class name.
Then I add a panel to notebook, also specifying separate files and new
class name. DB creates the panel in both separate file and main frame.
I followed the procedure for using separate files as stated in "how to
work with notebook controls". What am I doing wrong? I'm kind of new at
this!
Using DB 4.05, wxWidgets 2.8.3, Studio 2005 Express, Windows XP sp2
Thanks,
George

__._,_.___
.

__,_._,___
Re: Doing something wrong?
country flaguser name
United States
2007-03-31 03:21:12

>-- On Fri, 30 Mar 2007 19:41:11 -0000 grbradt wrote --
> Hi,
> I set up a small project to test aui features of DB 4.05. I add a
> main frame with aui manager on. Then I add a menubar with 1 menu,
> an aui toolbar with 1 button (ps. if i don't give button a bitmap,
> gives a debug error), toolbar is aui managed. Then a statusbar.
> Then I add an auinotebook, which is aui managed. I specify separate
> files for the notebook, and give a new class name.
> Then I add a panel to notebook, also specifying separate files and
> new class name. DB creates the panel in both separate file and main
>; frame. I followed the procedure for using separate files as stated
> in "how to work with notebook controls". What am I doing wrong? I'm
> kind of new at this!
> Using DB 4.05, wxWidgets 2.8.3, Studio 2005 Express, Windows XP sp2
> Thanks, George

Got your .pjd, looking at it...

First, might I suggest using VC++ Project instead of VC++, this will allow you
to open the .vcproj file DB generates in the Visual Studio IDE so you can use
its debugger.

Now, to your question, "What am I doing wrong?". I don't know. I don't know what
you're expecting and I'm unfamiliar with wxAUI, so I don't know what it should
look like.

I do know that I couldn't get a build from your .pjd until I added the lines:

////begin includes
#include "wx/aui/framemanager.h"
#include "wx/frame.h";
#include "wx/toolbar.h"
#include "wx/statusbr.h"
////end includes

#include "Test3Notebook.h" // added this
#include "Test3Panel.h" // added this

You describe in general what you're doing. However, you don't describe
specifically what you're expecting and what you're getting that you think is
wrong.

Can you be a little more informative? Step by step, what you did, what you
expected, what you got.

BTW, The AUI property list for Test3Notebook did not have AUI managed checkbox
checked. I did check it in the copy you sent to me.

thx,
Dave S.

On receiving honorary Doctorate from University of Glasgow in 2001:

"I'm now a Doctor of Letters. Most of them Fs and Bs."

"Before you judge a man, walk a mile in his shoes. After that who cares?... He's
a mile away and you've got his shoes!"

"In Scotland, there is no such thing as bad weather - only the wrong clothes."

"There are two seasons in Scotland - Winter and July.";

Personal quotes from Scotsman Musician/Comedian/Actor Billy Connolly


wxMS_developers · Development with wxWidgets on MSWindows
http://tech.groups.yahoo.com/group/wxMS_developers/

wxWidgets Code Exchange
http://wxcodex.net/

__._,_.___
.

__,_._,___
Re: Doing something wrong?
country flaguser name
United Kingdom
2007-03-31 03:42:40

Hi,

Once you delete the old code from the original file(s), DB should
continue to
work with the panel in the separate file. DB's not clever enough to
remove the old
code yet. Sorry!

Regards,

Julian

grbradt wrote:
> Hi,
> I set up a small project to test aui features of DB 4.05. I add
> a main frame with aui manager on. Then I add a menubar with 1 menu,
> an aui toolbar with 1 button (ps. if i don't give button a bitmap,
> gives a debug error), toolbar is aui managed. Then a statusbar. Then I
> add an auinotebook, which is aui managed. I specify separate files for
> the notebook, and give a new class name.
> Then I add a panel to notebook, also specifying separate files and new
> class name. DB creates the panel in both separate file and main frame.
> I followed the procedure for using separate files as stated in "how to
> work with notebook controls". What am I doing wrong? I'm kind of new at
> this!
> Using DB 4.05, wxWidgets 2.8.3, Studio 2005 Express, Windows XP sp2
> Thanks,
> George
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>;
>
>

--
Julian Smart, Anthemion Software Ltd.
28/5 Gillespie Crescent, Edinburgh, Midlothian, EH10 4HU
www.anthemion.co.uk | +44 (0)131 229 5306
Tools for writers: www.writerscafe.co.uk
wxWidgets RAD: www.anthemion.co.uk/dialogblocks

__._,_.___
.

__,_._,___
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )