Sign in to follow this  
Followers 0
Misha

Edit Boxes And Slides

3 posts in this topic

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



#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

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  
Followers 0