Jump to content

Separate gui


anib
 Share

Recommended Posts

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

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 ?

#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]
EndFunc
thank 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 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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...