Author Topic: Question about Wizard Script entry function and other required functions  (Read 4821 times)

Offline kccheng

  • Multiple posting newcomer
  • *
  • Posts: 30
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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline kccheng

  • Multiple posting newcomer
  • *
  • Posts: 30
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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Where is the object "Wizard" comes from ?
It's provided by the scripting engine.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline kccheng

  • Multiple posting newcomer
  • *
  • Posts: 30
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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ