je sèche sur quelque chose de tout bête : je n'arrive pas à intégrer une image sur ma form.
J'arrive à insérer certaine image mais pas celle en pièce jointe et je ne comprends pas pourquoi.
j'utilise la commande GUICtrlCreatePic.
Voici mon code de test :
Code : Tout sélectionner
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Opt('MustDeclareVars', 1)
Global $gui, $guiPos, $pic, $picPos
Example1()
;----- example 1 ----
Func Example1()
Local $n, $msg
GUICreate("My GUI picture", 950, 900, -1, -1, $WS_SIZEBOX + $WS_SYSMENU) ; will create a dialog box that when displayed is centered
$n = GUICtrlCreatePic(@DesktopDir"\test.jpg", 0, 0, 800, 800, "", "")
GUISetState()
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
; resize the control
$n = GUICtrlSetImage($n, @DesktopDir"\test.jpg")
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
GUIDelete()
EndFunc ;==>Example1Par avance merci.



