Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: kccheng on May 29, 2011, 11:11:36 am

Title: Question about Wizard Script entry function and other required functions
Post by: kccheng on May 29, 2011, 11:11:36 am
Hi,

It looks like every Wizard Script start from function BeginScript(), where is
the document describe this.

And any other functions (GetFilesDir, SetupProject ...) are required to
implement a Wizard script ?  The Wiki seem only have partial information :-(
Any document describes the structure of Wizard script ?


Thanks
KC
Title: Re: Question about Wizard Script entry function and other required functions
Post by: MortenMacFly on May 29, 2011, 11:23:27 am
Any document describes the structure of Wizard script ?
Any wizard available within C::B is complete and offers nice tutorials on how to implement a wizard. You can start with an easy "console project" wizard and work yourself through the samples e.g. up to the "wxWidgets project" wizard.
Notice the option "edit script" available if you right-click on an item (wizard).
Title: Re: Question about Wizard Script entry function and other required functions
Post by: kccheng on May 30, 2011, 07:42:27 am
Hi

Learn from source code template is a good approach.
In fact, I use the same learning apprach to create my 1st wizard.

The reason I asked is, although my 1st wizard work, but I
really don't know much about "how it work".  For example,
Take a look at this .... Wizard.GetWizardType();

Where is the object "Wizard" comes from ?

Thanks
KC
Title: Re: Question about Wizard Script entry function and other required functions
Post by: MortenMacFly on May 30, 2011, 09:13:41 am
Where is the object "Wizard" comes from ?
It's provided by the scripting engine.
Title: Re: Question about Wizard Script entry function and other required functions
Post by: kccheng on May 30, 2011, 09:59:16 am
Where is the object "Wizard" comes from ?
It's provided by the scripting engine.

Any document can tell me Wizard has a member function called "GetWizardType()",
or I still need to hack into source code to see it at this moment ?

Thanks a lot
KC
Title: Re: Question about Wizard Script entry function and other required functions
Post by: MortenMacFly on May 30, 2011, 09:20:21 pm
Any document can tell me Wizard has a member function called "GetWizardType()",
or I still need to hack into source code to see it at this moment ?
Look here:
http://wiki.codeblocks.org/index.php?title=Wizard_scripts
http://wiki.codeblocks.org/index.php?title=Script_plugins
http://wiki.codeblocks.org/index.php?title=Scripting_commands

The entry page is here:
http://wiki.codeblocks.org/index.php?title=Scripting

...feel free to add content if you believe information is missing...