name22

SliderEx Example

Jun 29th, 2011
141
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  #include "SliderEx.au3"
  2.  
  3. $hWnd = GUICreate("SliderEx Beispiel von nyme22 (autoit.de)", 210, 100)
  4. $cInput1 = GUICtrlCreateInput(50, 5, 55, 60, 20, 0x0800)
  5. $cInput2 = GUICtrlCreateInput(0, 5, 75, 60, 20, 0x0800)
  6. GUISetState()
  7.  
  8. $cSlider1 = _SliderEx_Create($hWnd, 5, 5, 200, 20, 50, 200)
  9. $cSlider2 = _SliderEx_Create($hWnd, 20, 30, 150, 20, 0, 100, 0xFFF2B80F, 0xFF754304, 0xFFF2B80F, 0xFF754304)
  10.  
  11. While True
  12.     Switch GUIGetMsg()
  13.         Case -3
  14.             _SliderEx_Destroy($cSlider1)
  15.             _SliderEx_Destroy($cSlider2)
  16.             Exit
  17.     EndSwitch
  18.     $iValue1 = _SliderEx_GetValue($cSlider1)
  19.     $iValue2 = _SliderEx_GetValue($cSlider2)
  20.     If GUICtrlRead($cInput1) <> $iValue1 Then GUICtrlSetData($cInput1, $iValue1)
  21.     If GUICtrlRead($cInput2) <> $iValue2 Then GUICtrlSetData($cInput2, $iValue2)
  22. WEnd
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×