Jump to content

a lilprob with gifs in a GUI


Recommended Posts

Ive 5 gifs in my GUI created but it will only 1 of it visible, all other are invisible muttley

Only the exit.gif will visible in the GUI !?!?!?

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

GUICreate("Form1", 539, 469, 193, 117)
GUISetBkColor(0xFFFFFF)
GUICtrlCreateGroup("MsgBox Ausgabe", 8, 8, 521, 97)
$titel = GUICtrlCreateInput("", 264, 32, 249, 21)
$text = GUICtrlCreateInput("", 80, 32, 129, 21)
$go = GUICtrlCreateButton("Abschicken", 400, 72, 113, 25, 0)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
GUICtrlCreateLabel("Titel:", 32, 32, 39, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
GUICtrlCreateLabel("Text:", 216, 32, 38, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$radio1 = GUICtrlCreateRadio("fehler", 32, 72, 17, 17)
$radio2 = GUICtrlCreateRadio("info", 104, 72, 17, 17)
$pic2 = GUICtrlCreatePic("stop.gif", 56, 64, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$pic3 = GUICtrlCreatePic("info.gif", 128, 64, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$pic4 = GUICtrlCreatePic("question-mark.gif", 272, 64, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$pic5 = GUICtrlCreatePic("exclamation_point.gif", 200, 64, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$radio3 = GUICtrlCreateRadio("achtung", 176, 72, 17, 17)
$radio4 = GUICtrlCreateRadio("frage", 248, 72, 17, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$pic1 = GUICtrlCreatePic("exit.gif", 464, 392, 64, 64, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlCreateGroup("Screenshot", 8, 120, 521, 65)
$she = GUICtrlCreateButton("Screenshot erzeugen", 40, 144, 210, 25, 0)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
$sha = GUICtrlCreateButton("Screenshot anzeigen", 288, 144, 210, 25, 0)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("Group3", 8, 200, 521, 81)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("Group4", 8, 296, 521, 81)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("Group5", 8, 392, 441, 65)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)

While 1
  Sleep(1)
Wend
Link to comment
Share on other sites

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

GUICreate("Form1", 539, 469, 193, 117)
GUISetBkColor(0xFFFFFF)
GUICtrlCreateGroup("MsgBox Ausgabe", 8, 8, 521, 97)
$titel = GUICtrlCreateInput("", 264, 32, 249, 21)
$text = GUICtrlCreateInput("", 80, 32, 129, 21)
$go = GUICtrlCreateButton("Abschicken", 400, 72, 113, 25, 0)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
GUICtrlCreateLabel("Titel:", 32, 32, 39, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
GUICtrlCreateLabel("Text:", 216, 32, 38, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$radio1 = GUICtrlCreateRadio("fehler", 32, 72, 17, 17)
$radio2 = GUICtrlCreateRadio("info", 104, 72, 17, 17)
$pic2 = GUICtrlCreatePic("stop.gif", 56, 64, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetState(-1, $GUI_DISABLE)
$pic3 = GUICtrlCreatePic("info.gif", 128, 64, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetState(-1, $GUI_DISABLE)
$pic4 = GUICtrlCreatePic("question-mark.gif", 272, 64, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetState(-1, $GUI_DISABLE)
$pic5 = GUICtrlCreatePic("exclamation_point.gif", 200, 64, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetState(-1, $GUI_DISABLE)
MsgBox(1, "", $pic2 & $pic3 & $pic4 & $pic5)
$radio3 = GUICtrlCreateRadio("achtung", 176, 72, 17, 17)
$radio4 = GUICtrlCreateRadio("frage", 248, 72, 17, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$pic1 = GUICtrlCreatePic("exit.gif", 464, 392, 64, 64, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlCreateGroup("Screenshot", 8, 120, 521, 65)
GUICtrlSetState(-1, $GUI_DISABLE)
$she = GUICtrlCreateButton("Screenshot erzeugen", 40, 144, 210, 25, 0)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
$sha = GUICtrlCreateButton("Screenshot anzeigen", 288, 144, 210, 25, 0)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("Group3", 8, 200, 521, 81)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("Group4", 8, 296, 521, 81)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("Group5", 8, 392, 441, 65)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)

While 1
  Sleep(1)
Wend

Try that

Regards,Josh

Link to comment
Share on other sites

No idea what you just said. I've run into problems with Pics disappearing when I don't disable them. What did that do when you tried it?

EDIT: Lol.... I was contemplating asking you if the messagebox said 0000... forgot to delete that line because I decided you should disable the pics muttley

Edited by JFee

Regards,Josh

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