anib Posted August 24, 2007 Share Posted August 24, 2007 hi everybody, excuse me for my languages ^^' i'm to search to create the horizontal barre ( for html : <hr> ) it's possible ? an exemple dialogbox properties variables separate to hr or separate for gui ? thanks a lot Me frappe pas !! je débute dans le monde du code :)Un novice avertit en vaut dix sans ennuie ;)AuToiT-FR Link to comment Share on other sites More sharing options...
Zedna Posted August 24, 2007 Share Posted August 24, 2007 (edited) If I understand right then use GUICtrlCreateLabel() with $SS_SUNKEN styleAlso try Koda for creating GUIs Edited August 24, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
anib Posted August 24, 2007 Author Share Posted August 24, 2007 (edited) thanks you zedna for answer & solution. An exemple is correct ? another solution #include <GUIConstants.au3> $Width = "600" Global $Separate[2] = [10,20] GUICreate("Exemple Separate Gui ?",$Width ,200,-1,-1) GUICtrlCreateLabel("",$Separate[0], 30,($width - $Separate[1]),1,$SS_SUNKEN ) GUISetState() Do $msg = GUIGetMsg() Until $msg = $GUI_EVENT_CLOSE or utilis function GUICtrlSetGraphic and another *.dll is correctly ? expandcollapse popup#include <GUIConstants.au3> Global $USER32 = DllOpen("user32.dll") Global $GDI32 = DllOpen("gdi32.dll") Dim $Gui $gui=GUICreate("Exemple Separate Gui ?",600 ,200,-1,-1) GUISetState() Do separator() $msg = GUIGetMsg() Until $msg = $GUI_EVENT_CLOSE func separator() $Form = getdc($Gui) $Pen1 =CreatePen(0,1,0xFFFFFF) SelectObject($Form,$Pen1) ;on donne ici l'attribut de couleur pour l'objet choisis MoveToEx($form, 10, 50,0);gui,x,y,point LineTo($form,590,50) ;gui,x,y EndFunc func SelectObject($HDC,$Object) Local $ret = DllCall($GDI32,"hwnd","SelectObject","ptr",$HDC,"hwnd",$Object) Return $ret[0] EndFunc func GetDC ($handle) Local $ret = dllcall($USER32,"int","GetDC","ptr",$handle) Return $ret[0] EndFunc func CreatePen($Style,$Epaisseur,$Couleur); Local $ret = dllcall($GDI32, "hwnd", "CreatePen", "int", $Style, "int", $Epaisseur, "hwnd", $Couleur) return $ret[0] EndFunc Func MoveToEx($hdc, $x, $y, $point) Local $ret = DllCall( $GDI32, 'int', 'MoveToEx', 'ptr', $hdc, 'int', $x, 'int', $y, 'ptr', $point) Return $ret[0] EndFunc Func LineTo($hdc, $x, $y) Local $ret = DllCall( $GDI32, 'int', 'LineTo', 'ptr', $hdc, 'int', $x, 'int', $y) Return $ret[0] EndFuncthank you so, how does syntax color for code ? (en français : comment utilise-t'on la coloration syntaxe pour le code svp) thx excuse me for a bad langague but study english resolu thx a lot Edited August 25, 2007 by anib Me frappe pas !! je débute dans le monde du code :)Un novice avertit en vaut dix sans ennuie ;)AuToiT-FR Link to comment Share on other sites More sharing options...
anib Posted August 27, 2007 Author Share Posted August 27, 2007 (edited) hi everybody , excuse me for this, for example separate for gui by *.dll is correctly, I closed process user & gdi or not ? thank you a lot Edited August 27, 2007 by anib Me frappe pas !! je débute dans le monde du code :)Un novice avertit en vaut dix sans ennuie ;)AuToiT-FR Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now