News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

How to initialize AddCompilerPage() in Wizard Script ?

Started by Rapscallion, November 06, 2006, 05:47:35 PM

Previous topic - Next topic

Rapscallion

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.

mandrav

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:

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...