Jump to content

Recommended Posts

Posted (edited)

Hi Guy,  I have two problems, hope someone can help me. Many thanks.

This is the GUI that I created for our auto-test. I want to give each tree view item a Parameters page or screen, just like the left side shows. Are there any functions that can implement this feature? The second problem is there way that displays a text in input on tab 2(Command tab) which entered in Tab 1(General Tab) input。

I tried to code like this, but it doesn't work   

$LabTestSuit = GUICtrlCreateLabel("Test Suit", 32, 68, 67, 24)                            
                                               
$InputTestSuitName = GUICtrlCreateInput("Give your test suit a name", 144, 68, 209, 25)     
                                             
$inputText = GUICtrlRead($InputTestSuitName)

$InputTSName = GUICtrlCreateInput($inputText, 160, 68, 249, 24)

Thank you very much indeed.

QQ图片20160624170746.png

 

Edited by Codartizan
Posted (edited)

With a Array and _GUICtrlListView_SetItemParam the first problem is solveable. The second sounds much easier: use GuiCtrlRead and GuiCtrSetData.

 

Maybe you get better help with a runable (reproducer) script. Then help willing peoples can implement needed functions.

Edited by AutoBert
Posted (edited)
On 6/24/2016 at 10:27 PM, AutoBert said:

The second sounds much easier: use GuiCtrlRead and GuiCtrSetData.

Hi, there.

Thanks for reply me.

I've tried these two functions(GUICtrlRead&GUICtrlSetData), but nothing happened:


   

$InputTestSuitName = GUICtrlCreateInput("Give your test suit a name", 144, 68, 209, 25)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sabs Serif")                                              
$inputText = GUICtrlRead($InputTestSuitName)

$InputTSName = GUICtrlCreateInput("Give your test suit a name", 160, 68, 249, 24)
GUICtrlSetData($InputTSName, $inputText)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")

Thank you.

Edited by Codartizan
Posted
11 hours ago, Codartizan said:

I've tried these two functions(GUICtrlRead&GUICtrlSetData), but nothing happened:

is this snipet runable?

On 24.6.2016 at 0:27 PM, AutoBert said:

Maybe you get better help with a runable (reproducer) script.

 

Posted
12 hours ago, AutoBert said:

is this snipet runable?

 

 

 

Sorry Bert, I didn't understand runnable script at the first time. Sorry about this. But good news, I implemented this feature in another way. So problem solved. Still many thanks for you replying me. Cheers

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