Page 1 sur 1

[R] Groupe, TabSheet n'affiche pas Image

Posté : sam. 30 janv. 2010 17:25
par Narmeke
Salut tous le monde,
Je viens de faire un script donc j'ai besoin d'afficher une image.
Or elle ne s'affiche pas.
J'ai fais plusieurs Tests et j'obtiens ceci :

Code : Tout sélectionner

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form3 = GUICreate("Form3", 796, 459, 288, 206)
$Group1 = GUICtrlCreateGroup("Group1", 32, 48, 281, 201)
[color=#FF0000]$Pic1 = GUICtrlCreatePic("C:\Users\Narmeke\Desktop\Images\Bouttons\Boutton_Developper.jpg", 48, 88, 233, 145, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))[/color]
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Tab1 = GUICtrlCreateTab(368, 32, 401, 329)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
[color=#FF0000]$Pic2 = GUICtrlCreatePic("C:\Users\Narmeke\Desktop\Images\Bouttons\Boutton_Construire.jpg", 392, 80, 361, 249, BitOR($SS_NOTIFY,$WS_GROUP,$WS_TABSTOP,$WS_CLIPSIBLINGS))[/color]
GUICtrlCreateTabItem("")
[color=#00FF00]$Pic3 = GUICtrlCreatePic("C:\Users\Narmeke\Desktop\Images\Bouttons\Boutton_Construire.jpg", 48, 296, 265, 129, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))[/color]
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

 
Seul les images en rouge ne s'affiche pas, celle en verte s'affiche.
J'aimerai comprende pourkoi et comment y remedier.
Merci d'avance.

Re: [..] Ne gère pas l'image

Posté : sam. 30 janv. 2010 18:21
par DJSIR
Tes images sont cachées par les onglets !

Re: [..] Ne gère pas l'image

Posté : sam. 30 janv. 2010 18:34
par Narmeke
Comment dois je faire ?

Re: [..] Ne gère pas l'image

Posté : sam. 30 janv. 2010 18:40
par DJSIR
Faut faire fonctionner ta tête ! Déja, supprime les paramètres en trop !

Re: [..] Ne gère pas l'image

Posté : sam. 30 janv. 2010 18:45
par Narmeke
Je veux bien mais rien que sa :

Code : Tout sélectionner

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form3 = GUICreate("Form3", 584, 403, 302, 218)
$Group1 = GUICtrlCreateGroup("Group1", 40, 48, 401, 281)
$Pic1 = GUICtrlCreatePic("C:\Users\Narmeke\Desktop\Images\Bouttons\Boutton_Construire.jpg", 152, 144, 193, 121, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

 
Rien ne s'affiche !

Edit : Merci DJSIR, en réfléchissant bien je viens de comprendre !

Code : Tout sélectionner

$Pic1 = GUICtrlCreatePic("C:\Users\Narmeke\Desktop\Images\Bouttons\Boutton_Construire.jpg", 152, 144, 193, 121)
Cela fonctionne ^^