
1- Voila je souhaiterais créer une GUICreate d'une autre forme (arrondi) que rectangle est-ce possible ?
2-Est-ce possible sinon de'integrer dans le GUICreate rectangle une forme arrondi ?
Merci de votre aide !

Code : Tout sélectionner
opt ( "GUIONEVENTMODE" , 1 )
#include <GUIConstants.au3>
;GUI
GUICreate ( "title" , 300 , 300 , 30 , 30 , $WS_POPUP , $WS_EX_LAYERED )
$B = GUICtrlCreateButton ( "TEST" , 100 , 100 , 50 , 50 , - 1 , 0x00000020 )
GuiCtrlSetOnEvent ( $B , "hello" )
$B2 = GUICtrlCreateButton ( "quit" , 200 , 100 , 50 , 50 , - 1 , 0x00000020 )
GuiCtrlSetOnEvent ( $B2 , "_exit" )
$inp = GUICtrlCreateInput ( "world" , 150 , 220 , 50 , 20 )
$n = GUICtrlCreatePic ( "Background1.gif" , 0 , 0 , 300 , 300 , - 1 , 0x00000020 )
GuiCtrlSetOnEvent ( $n , "_move" )
GUISetState ( @SW_SHOW )
GuiCtrlSetState ( $B , $GUI_FOCUS )
GuiCtrlSetState ( $B2 , $GUI_FOCUS )
GuiCtrlSetState ( $inp , $GUI_FOCUS )
GuiCtrlSetState ( $B , $GUI_FOCUS )
GUISetOnEvent ( $GUI_EVENT_CLOSE , "_Exit" )
while 1
Wend
func _exit ( )
Exit
EndFunc
Func Hello ( )
MsgBox ( 0 , "hello" , GUICtrlRead ( $inp ) )
EndFunc
func _move ( )
opt ( "GUIONEVENTMODE" , 0 )
$posw = WinGetPos ( "title" )
$poss = MouseGetPos ( )
$deltax = $poss[0] - $posw[0]
$deltay = $poss[1] - $posw[1]
Do
$msg = GUIGetMsg ( )
Until $msg == $GUI_EVENT_PRIMARYUP
$pos = MouseGetPos ( )
WinMove ( "title" , "" , $pos[0] - $deltax , $pos[1] - $deltay )
opt ( "GUIONEVENTMODE" , 1 )
EndFunc
Func _IsPressed ( $hexKey )
Local $aR , $bRv
$hexKey = '0x' & $hexKey
$aR = DllCall ( "user32" , "int" , "GetAsyncKeyState" , "int" , $hexKey )
If $aR[0] <> 0 Then
$bRv = 1
Else
$bRv = 0
EndIf
Return $bRv
EndFunc
Code : Tout sélectionner
GUICtrlCreateSlider (10,10,20,200,$TBS_VERT)
GUICtrlSetLimit(-1,100,0) ; change min/max value
Code : Tout sélectionner
#include <GUIConstants.au3>
GUICreate ( "slider" , 220 , 400 , 200 , 200 )
GUISetBkColor ( 0x00E0FFFF ) ; will change background color
SoundSetWaveVolume ( 50 )
$slider1 = GUICtrlCreateSlider ( 10 , 10 , 20 , 200 , $TBS_VERT )
GUICtrlSetLimit ( - 1 , 100 , 0 ) ; change min/max value
GUICtrlSetData ( - 1 , 50 )
;$button = GUICtrlCreateButton ( "Value?" , 75 , 70 , 70 , 20 )
GUISetState ( )
GUICtrlSetData ( $slider1 , 45 ) ; set cursor
$start = TimerInit ( )
Do
$n = GUIGetMsg ( )
If $n = $slider1 Then
$val = GUICtrlRead ( $slider1 )
SoundSetWaveVolume ( 100 - $val ) ; comme la position haute correspond à0 , l semble plus naturel d'inverser
EndIf
Until $n = $GUI_EVENT_CLOSE