Sign in to follow this  
Followers 0
Dr Kiffer

Button Click Action

5 posts in this topic

Hello,

I've got a window with two tabs.

After clicking a button in tab1 i want to read some lines from a text file and display the result in tab2.

I did not find a way to manag after clicking the Button to display a dynamic content in an other tab.

Can someone help me?

Greetz

Danny

Share this post


Link to post
Share on other sites



Can someone help me?

1.) It would help if you post the code you have so far.

2.) check out GUICtrlSetData().

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

do you want the whole text or just a part of it?

whatever you think is needed to understand the problem.

Please don't post the whole script if it's very large. I'm not going to read it B)

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Sorry that my post comes so late!

Here some Code I've got till now

#include <GuiConstants.au3>
; GUI
GuiCreate("test", 400, 400)
GuiSetIcon(@SystemDir & "\mspaint.exe", 0)

; MENU 
$filemenu = GUICtrlCreateMenu ("&File")
$fileitem = GUICtrlCreateMenuitem ("Open",$filemenu)
$filesave = GUICtrlCreateMenuitem ("Save",$filemenu)
$exititem = GUICtrlCreateMenuitem ("Exit",$filemenu)

; TAB
GuiCtrlCreateTab(10, 10, 380, 350)
$shares=GuiCtrlCreateTabItem(" Shares ")
GuiCtrlCreateLabel("test1", 50, 50)
GuiCtrlCreateLabel("test2", 50, 100)
GuiCtrlCreateLabel("test3", 50, 150)
GuiCtrlCreateLabel("test4", 50, 200)
GuiCtrlCreateLabel("test5", 50, 250)
$printer=GuiCtrlCreateTabItem(" Printer ")
$internet=GuiCtrlCreateTabItem(" Internet ")

GUISetState ()
While 1
    $msg = GUIGetMsg()
    If $msg = $fileitem Then
        $file = FileOpenDialog("Choose file...",@MyDocumentsDir,"ini (*.ini)")
    $ini=IniReadSection ( $file, "shares" )
For $i = 1 To $ini[0][0]
; After Klicking the open Button the content of the ini file should be display under Printer Tab!
   Next
EndIF       

 If $msg = $GUI_EVENT_CLOSE Or $msg = $exititem  Then 
 ExitLoop
 EndIf
WEnd
GUIDelete()

After Clicking the Open dialog @ the menu the content of an ini file should be displayd at the printer tab!

Can u help me?

thx

greetz

Danny

Share this post


Link to post
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
Sign in to follow this  
Followers 0