h00k Posted July 21, 2008 Share Posted July 21, 2008 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 !?!?!? expandcollapse popup#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 More sharing options...
JFee Posted July 21, 2008 Share Posted July 21, 2008 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 Link to comment Share on other sites More sharing options...
h00k Posted July 21, 2008 Author Share Posted July 21, 2008 (edited) Ive try it without $WS_GROUP and it change nothing muttley Edited July 21, 2008 by h00k Link to comment Share on other sites More sharing options...
JFee Posted July 21, 2008 Share Posted July 21, 2008 expandcollapse popup#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 More sharing options...
h00k Posted July 21, 2008 Author Share Posted July 21, 2008 (edited) that show me only the $pic inputs with a msgbox ????? how will thats help ?? Edited July 21, 2008 by h00k Link to comment Share on other sites More sharing options...
JFee Posted July 21, 2008 Share Posted July 21, 2008 (edited) 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 July 21, 2008 by JFee Regards,Josh Link to comment Share on other sites More sharing options...
h00k Posted July 21, 2008 Author Share Posted July 21, 2008 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. Link to comment Share on other sites More sharing options...
JFee Posted July 21, 2008 Share Posted July 21, 2008 Have you tried putting them outside of groups? Regards,Josh Link to comment Share on other sites More sharing options...
h00k Posted July 21, 2008 Author Share Posted July 21, 2008 Yes, without the group it will show me all pics perfect. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now