User forums > General (but related to Code::Blocks)
How to initialize AddCompilerPage() in Wizard Script ?
(1/1)
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:
--- 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
--- End code ---
Navigation
[0] Message Index
Go to full version