Author Topic: How to initialize AddCompilerPage() in Wizard Script ?  (Read 3582 times)

Rapscallion

  • Guest
How to initialize AddCompilerPage() in Wizard Script ?
« on: November 06, 2006, 05:47:35 pm »
I'm currently writing a project Wizard Script and am trying to initialize the AddCompilerPage() directory boxes without much success! Can anyone give me any pointers?
I've looked at 'Operating on GUI controls' at http://wiki.codeblocks.org/index.php?title=Wizard_Scripting_Commands and tried the following:

function OnEnter_CompilerPage(forward)
{
    local wiz_type = Wizard.GetWizardType();

    // we only care to initialize if going forward
    if (forward)
    {
        Wizard.SetTextControlValue(_T("RelName"), _T("test1"));
        Wizard.SetTextControlValue(_T("RelOut"), _T("test2"));
    }
}

Not sure if this is the right approach or how to find the correct 'control_name' to use with Wizard.SetTextControlValue(). Any help would be greatly appreciated.
« Last Edit: November 06, 2006, 05:51:49 pm by Rapscallion »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: How to initialize AddCompilerPage() in Wizard Script ?
« Reply #1 on: November 06, 2006, 06:32:21 pm »
Those controls are not meant to be changed by scripts. They 're automatically saved and restored between sessions.
If you insist on changing them (I don't know if this will even work), these are their IDs:
Code
Release name: ID_TEXTCTRL4
Release binary output: ID_TEXTCTRL5
Release objects output: ID_TEXTCTRL6

Debug name: ID_TEXTCTRL3
Debug binary output: ID_TEXTCTRL1
Debug objects output: ID_TEXTCTRL2
Be patient!
This bug will be fixed soon...