Jump to content

Recommended Posts

Posted

When creating an input box (or any other control, for that matter) in Koda, there seems to be no way to use a variable as the initial text... as far as I can see it has to be changed after inserting it into the script and then redoing that change every time the GUI is changed in Koda and the script is updated? If I put the $variable name into Koda it treats it as static text and puts quotes around it. I realize I can create the form with dummy text and then use GUICtrlSetData, but that seems kludgy.

Posted

It can't do everything. It's designed more as a prototyping tool that the user then modifies with their own code, rather than doing everything.

Quick hack is to replace "$..." with the actual variable name, simple regex would do it easily if you have lots of variables as text.

Posted

Think of Koda as a template maker. It's really good at buildling a base for you to work on, but it requires tweaking to get exactly what you want.

Sure beats typing it all out every time you go make a GUI.

  Reveal hidden contents

 

Posted

  On 5/10/2012 at 2:49 PM, 'Dana said:

When creating an input box (or any other control, for that matter) in Koda, there seems to be no way to use a variable as the initial text...

You are wrong.

Koda can do it, switch ON:

Options/Code Generator/Expand %var% variables

Then place %a% into Input control's Text property.

In generated code will be

$Input1 = GUICtrlCreateInput($a, 120, 80, 121, 21)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...