List Info

Thread: SubPage for Treebook & Insert Code




SubPage for Treebook & Insert Code
user name
2007-10-22 21:14:39

Hiya everyone,

1. Treebook Sub Page

Hey, in DB how do you add a sub page to a Treebook. I can easily code
it - but would like to know how to do it within the DB environment.

2. Insert code

How do you insert code so it stays? I placed some code in the Create
method (see where below), but when I renamed the class in DB the code
was removed.

bool CmdFrame::Create( wxWindow* parent, wxWindowID id, const
wxString& caption, const wxPoint& pos, const wxSize&; size, long
style )
{
////begin CmdFrame creation
wxFrame::Create( parent, id, caption, pos, size, style );

CreateControls();
Centre();
////end CmdFrame creation

-->> I placed some code here

return true;
}

Many thanks,
Mark

__._,_.___
.

__,_._,___
Re: SubPage for Treebook & Insert Code
user name
2007-10-23 01:40:05

Hi Mark,

easton.mark wrote:
> Hiya everyone,
>
> 1. Treebook Sub Page
>;
> Hey, in DB how do you add a sub page to a Treebook. I can easily code
> it - but would like to know how to do it within the DB environment.
>
Sorry, this isn't yet possible from within DB.
>
> 2. Insert code
>;
> How do you insert code so it stays? I placed some code in the Create
> method (see where below), but when I renamed the class in DB the code
> was removed.
>
If you don't fully regenerate the code and you gave this element a
filename, DB won't remove file outside its own comment blocks.
So possibly you didn't define filenames for this this element?

Regards,

Julian

__._,_.___
.

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

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