Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1[Auto] Slider Empty [Auto] Slider Sat Aug 28, 2010 1:23 am

Top

avatar
Contributor
Loading
Simple AutoIt Slider. Get;s the value.
Code:
#include <GUIConstantsEx.au3>

Opt('MustDeclareVars', 1)

Example()

Func Example()
   Local $slider1, $button, $msg
   
   GUICreate("slider", 220, 100, 100, 200)
   GUISetBkColor(0x00E0FFFF)

   $slider1 = GUICtrlCreateSlider(10, 10, 200, 20)
   GUICtrlSetLimit(-1, 200, 0)
   $button = GUICtrlCreateButton("Value?", 75, 70, 70, 20)
   GUISetState()
   GUICtrlSetData($slider1, 45)

   Do
      $msg = GUIGetMsg()
      
      If $msg = $button Then
         MsgBox(0, "slider1", GUICtrlRead($slider1), 2)
      EndIf
   Until $msg = $GUI_EVENT_CLOSE
EndFunc

2[Auto] Slider Empty Re: [Auto] Slider Sun Jan 09, 2011 9:00 pm

OwenWilson

OwenWilson
Master
Loading
thats very helpful, thank you!!
Smile

View previous topic View next topic Back to top  Message [Page 1 of 1]

Related topics

Permissions in this forum:
You cannot reply to topics in this forum