Jump to content
Sign in to follow this  
h00k

a lilprob with gifs in a GUI

Recommended Posts

h00k

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

Share this post


Link to post
Share on other sites
JFee

Is it because you gave the others the $WS_GROUP style to the others even though they aren't the first controls in a group?

Just a thought, I'm not sure though


Regards,Josh

Share this post


Link to post
Share on other sites
h00k

Ive try it without $WS_GROUP and it change nothing muttley

Edited by h00k

Share this post


Link to post
Share on other sites
JFee

#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

Share this post


Link to post
Share on other sites
h00k

that show me only the $pic inputs with a msgbox ????? how will thats help ??

Edited by h00k

Share this post


Link to post
Share on other sites
JFee

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

Share this post


Link to post
Share on other sites
h00k

i think the problem is that pics cant show on groups but the help file say it will run with the $WS_GROUP style thats very strange.

Share this post


Link to post
Share on other sites
JFee

Have you tried putting them outside of groups?


Regards,Josh

Share this post


Link to post
Share on other sites
h00k

Yes, without the group it will show me all pics perfect.

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.