News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Question about Wizard Script entry function and other required functions

Started by kccheng, May 29, 2011, 11:11:36 AM

Previous topic - Next topic

kccheng

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

MortenMacFly

Quote from: kccheng on May 29, 2011, 11:11:36 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).
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]

kccheng

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

MortenMacFly

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]

kccheng

Quote from: MortenMacFly on May 30, 2011, 09:13:41 AM
Quote from: kccheng on May 30, 2011, 07:42:27 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

MortenMacFly

Quote from: kccheng on May 30, 2011, 09:59:16 AM
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...
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]