Sign in to follow this  
Followers 0
CasaCorupta

GUICtrlCreateLabel - changing variable

3 posts in this topic

#1 ·  Posted (edited)

;-------------------------------------------------------------------------------    
;-------------------------------------------------------------------------------
; SCRIPT

; LAYOUT GUI 

GUICreate("Reset Settings",310,150) 

Opt("GUICoordMode",2)

$CAD            = GUICtrlCreateMenu ("CAD")
$CADNews        = GUICtrlCreateMenuitem ("CADNews",$CAD)
$CADContact     = GUICtrlCreateMenuitem ("CADContact",$CAD)
$CADIntranet    = GUICtrlCreateMenuitem ("CADIntranet",$CAD)

$Text           = GuiCtrlCreateLabel($msg_ger & $msg_eng, 15, 10)

$helpmenu       = GUICtrlCreateMenu ("?")
$infoitem       = GUICtrlCreateMenuitem ("About",$helpmenu)

$Button_1       = GUICtrlCreateButton ("Reset Settings",-250,5,100,20)
$Button_2       = GUICtrlCreateButton ( "Cancel",0, -1)

GUICtrlCreateLabel ($default_status,-258,8,306,16,BitOr($SS_SIMPLE,$SS_SUNKEN))


GUISetState ()    

; INHALT GUI
While 1
    $msg = GUIGetMsg()
    
    Select
        Case $msg = $GUI_EVENT_CLOSE 
            Exit
        Case $msg = $Button_1
            Msgbox(0,"About", $version & @CRLF & @CRLF & $scripter)
        Case $msg = $Button_2
            Exit 
        Case $msg = $infoitem 
            Msgbox(0,"About", $version & @CRLF & @CRLF & $scripter)
        Case $msg = $CADIntranet
            $oIE = _IECreate ($CADIntranet_Link)
            _IELoadWait ($oIE)
        Case $msg = $CADNews 
            $oIE = _IECreate ($CADNews_Link)
            _IELoadWait ($oIE) 
        Case $msg = $CADContact 
            $oIE = _IECreate ($CADContact_Link, 0, 0)
            _IELoadWait ($oIE)
            _IEQuit ($oIE)
    EndSelect
Wend

; SCRIPT ENDE
;-------------------------------------------------------------------------------    
;-------------------------------------------------------------------------------

How can i change the veriable $default_status in my script? i want to do it in case when i klick on Button 1... the status bar should change imediatly

Thx for your help!

Edited by CasaCorupta

Greets CasaCorupta

Share this post


Link to post
Share on other sites



$status = GUICtrlCreateLabel ($default_status,-258,8,306,16,BitOr($SS_SIMPLE,$SS_SUNKEN))
...
Case $msg = $Button_1
            GUICtrlSetData($status, "here it is!")
            Msgbox(0,"About", $version & @CRLF & @CRLF & $scripter)
...

Share this post


Link to post
Share on other sites

THX Zedna! :)


Greets CasaCorupta

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