Jump to content

Recommended Posts

@philpw99 

; ... Other AutoIt code lines

; include the gui code
Include "myGui.isf"

; run the main declaration function then get a map variable, which contains all control handles.
$mMyGUI = mygui()

; Manipulate the controls
GUICtrlSetData( $mMyGUI.MyTextCtrl, "Text for my edit")
GUICtrlSetData( $mMyGUI.MyList, "item1|item2|item3")

; Show the GUI by using gui handle.
GuiSetState($mMyGUI.handle)

How did you do that? The function mygui() ist not part of the automatic gernerated code or did i miss something? 

I created a form project and included testform.isf and i have not been able to call the testform() function.

Regard

Sascha

 

 

Edited by Sascha
Link to comment
Share on other sites

On 8/22/2023 at 2:17 PM, Sascha said:

@philpw99 

; ... Other AutoIt code lines

; include the gui code
Include "myGui.isf"

; run the main declaration function then get a map variable, which contains all control handles.
$mMyGUI = mygui()

; Manipulate the controls
GUICtrlSetData( $mMyGUI.MyTextCtrl, "Text for my edit")
GUICtrlSetData( $mMyGUI.MyList, "item1|item2|item3")

; Show the GUI by using gui handle.
GuiSetState($mMyGUI.handle)

How did you do that? The function mygui() ist not part of the automatic gernerated code or did i miss something? 

I created a form project and included testform.isf and i have not been able to call the testform() function.

Regard

Sascha

 

 

You need to switch to "Return the gui in a map"-mode in the Formstudio. (It´s in the GUI Settings -> AutoIt Code Settings)
You can also check the Testproject 4 on my website, it´s all about that new feature.

Link to comment
Share on other sites

On 8/26/2023 at 6:14 PM, ISI360 said:

You need to switch to "Return the gui in a map"-mode in the Formstudio. (It´s in the GUI Settings -> AutoIt Code Settings)
You can also check the Testproject 4 on my website, it´s all about that new feature.

@ISI360

Thank you. Now  it works. Nice job.

Regards

Sascha

 

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...