Penny Posted September 8, 2009 Posted September 8, 2009 (edited) For reference:What I want to do is have the gray box under the "Loading...Ok" label to be OVER the horrible placeholder drawing I made, like the label is, perfectly fine.I tried moving the code around but that didn't help; either creating the background first and then the graphic or the other way around, the background is always on top.$GUI_Handle[$hWnd_Splash] = GUICreate($GUI_Title_St & "Loader", 800, 600,-1,-1,-1,$WS_EX_STATICEDGE) GUISetIcon($ScriptIcon_FilePath) GUISetOnEvent($GUI_EVENT_CLOSE, "GUIClose") GUISetFont(9,800,0,"Verdana") GUICtrlCreatePic($LoaderBackground_FilePath,0,0) GUICtrlSetPos(-1,0,0,400,600) GUICtrlSetState(-1,$GUI_DISABLE) GUICtrlCreateGraphic(100,350,600,30) GUICtrlSetGraphic(-1, $GUI_GR_COLOR,0x000000,0xAAAAAA) GUICtrlSetGraphic(-1,$GUI_GR_RECT,0,0,600,30) GUICtrlSetState(-1,$GUI_DISABLE) GUICtrlCreateLabel("splash screen!! y un fondo de memo ...mientras loadea las demas pantallas...",200,100) $fSplash_pbsProgress = GUICtrlCreateProgress(150,500,500,35,$PBS_SMOOTH) $fSplash_lblProgress = GUICtrlCreateLabel("Loading...",200,357,400,25,$SS_CENTER) GUICtrlSetColor($fSplash_lblProgress,0x840000) GUICtrlSetBkColor($fSplash_lblProgress,$GUI_BKCOLOR_TRANSPARENT) GUISetState(@SW_SHOW,$GUI_Handle[$hWnd_Splash]) Edited September 8, 2009 by Penny
andygo Posted September 8, 2009 Posted September 8, 2009 (edited) just change 4 lines:GUICtrlCreateProgress(100,350,600,30) ;GUICtrlCreateGraphic(100,350,600,30) ;GUICtrlSetGraphic(-1, $GUI_GR_COLOR,0x000000,0xAAAAAA) ;GUICtrlSetGraphic(-1,$GUI_GR_RECT,0,0,600,30) GUICtrlSetState(-1,$GUI_DISABLE) Edited September 8, 2009 by andygo
somdcomputerguy Posted September 8, 2009 Posted September 8, 2009 (edited) Try $GUI_ONTOP instead of $GUI_DISABLE (the setState for the rectangle graphic). I don't know if this will solve your problem.. also, the docs say this Due to design constraints RECT, ELLIPSE and PIE graphics are drawnfirst. For example, a LINE will always be drawn over a RECT. If thedrawing order is important to the look of the graphic, then it isrecommended that multiple graphic controls be used instead of using asingle control to do all the drawing.here, Function GUICtrlSetGraphic, so that may be related to this issue. Edited September 8, 2009 by snowmaker - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
Penny Posted September 8, 2009 Author Posted September 8, 2009 @andy is that a joke? the whole point of this thread is I want the graphic to be on top of the background picture, not delete it completely! @snowmaker $GUI_ONTOP didn't work, I did read what you quoted in the documentation, but it's talking about graphics within the same graphic control, and I'm using two different controls (one for the bg and one for the rect), so that shouldn't be the problem either
andygo Posted September 8, 2009 Posted September 8, 2009 @andy is that a joke? the whole point of this thread is I want the graphic to be on top of the background picture, not delete it completely!@snowmaker $GUI_ONTOP didn't work, I did read what you quoted in the documentation, but it's talking about graphics within the same graphic control, and I'm using two different controls (one for the bg and one for the rect), so that shouldn't be the problem either sry then i missunderstood my english isnt perfect cause here in germany i dont need it so frequently....
Jman Posted September 9, 2009 Posted September 9, 2009 Penny, This might help you: GUI Designer: Koda it's a very easy program to use and you can click your pictures / images and set the arrangement of how you want them to be displayed. Then you generate the code copy & paste.
Zedna Posted September 9, 2009 Posted September 9, 2009 (edited) GUICtrlCreateGraphic() is painted always at bottom layer by design. So I think you should use some GDI API functions for painting of your rectangle and label over picture. Look into latest beta and its WinAPI UDF. Edited September 9, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
Penny Posted September 9, 2009 Author Posted September 9, 2009 thanks for the input guys, I decided to just draw the box in the actual jpeg. thing is I wanted to have like a graphic to decorate the progress bar with a transparent background, then that grey box but with an alpha and then in the background the other picture (which would be the placeholder) so I just need to change that pic each time, and not need to edit the pic in photoshop, use layers etc, just do that in the script, but I didn't find a way to do that either (transparent in pics?) is there a way to do that either?
Zedna Posted September 9, 2009 Posted September 9, 2009 Search forum for "transparent" :-) Resources UDF ResourcesEx UDF AutoIt Forum Search
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