Jump to content
Sign in to follow this  
Misha

Edit Boxes And Slides

Recommended Posts

Misha

Is there a way that I could Update My Edit Box to the value of my slider like always?

Share this post


Link to post
Share on other sites
GaryFrost

#include <GuiConstants.au3>

GUICreate("MyGUI", 392, 323)

$temp = 50

$Input_1 = GUICtrlCreateInput($temp, 40, 20, 140, 20)

$Slider_2 = GUICtrlCreateSlider(40, 50, 140, 30)
GUICtrlSetLimit($Slider_2, 100, 0)
GUICtrlSetData($Slider_2, $temp)

GUISetState()

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case Else
            If $temp <> GUICtrlRead($Slider_2) Then
                $temp = GUICtrlRead($Slider_2)
                GUICtrlSetData($Input_1, $temp)
            EndIf
    EndSelect
WEnd
Exit


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
Misha

Thanks I figured out with GuiCtrlSetOnEvent

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.