OminousIdol Posted September 26, 2004 Posted September 26, 2004 Does the GUI not support Transparent GIFS or PNG? Because I am trying to build a game I can not get any of my pictures to be Transparent! Is their a way around this or just cant be done? Thanks OminousIdol
this-is-me Posted September 26, 2004 Posted September 26, 2004 (edited) Use icons or avi files. Anything else is not supported. It's a limitation of windows. Edited September 26, 2004 by this-is-me Who else would I be?
OminousIdol Posted September 26, 2004 Author Posted September 26, 2004 AVI or Icon? How would I go about saving 1 image a AVI or a Icon? Thanks OminousIdol
OminousIdol Posted September 26, 2004 Author Posted September 26, 2004 Ok... made my pictures icons so they can be transparent but the quality is not that great any of making it better and have this code. When it first displays the Icon it is really small for some reason then whe I press left to make it move it becomes big like it should! Can anyone tell me how to make it big when you first start up the program thanks! Here is my code! expandcollapse popupDim $L, $x, $y, $w, $h $L = 0 $x = 10 $y = 10 $w = 94.5 $h = 109.6 HotKeySet("{RIGHT}", "Right") GuiCreate("Walking", 800, 600) $pic = GUICtrlCreateIcon("walk1.ico",-1,$x, $y, $w, $h) GUICtrlSetNotify () Func Right() $L = $L + 1 $x = $x + 10 If $L = 1 Then GUICtrlSetImage($pic,"walk2.ico") GUICtrlSetPos($pic,$x, $y, $w, $h) EndIf If $L = 2 Then GUICtrlSetImage($pic,"walk3.ico") GUICtrlSetPos($pic,$x, $y, $w, $h) EndIf If $L = 3 Then GUICtrlSetImage($pic,"walk4.ico") GUICtrlSetPos($pic,$x, $y, $w, $h) EndIf If $L = 4 Then GUICtrlSetImage($pic,"walk5.ico") GUICtrlSetPos($pic,$x, $y, $w, $h) EndIf If $L = 5 Then GUICtrlSetImage($pic,"walk6.ico") GUICtrlSetPos($pic,$x, $y, $w, $h) $L = 1 EndIf EndFunc GUISetState () $msg = 0 While $msg <> -3 Wend
this-is-me Posted September 26, 2004 Posted September 26, 2004 For the question about avi and icons, google it. For the gui problem, replace $pic = GUICtrlCreateIcon("walk1.ico",-1,$x, $y, $w, $h) with $pic = GUICtrlCreateIcon("walk1.ico",-1,$x, $y, $w, $h) GUICtrlSetPos($pic,$x, $y, $w, $h) Trust me, it works. Who else would I be?
OminousIdol Posted September 26, 2004 Author Posted September 26, 2004 Thanks! That work just great! But I am just having problems with this whole thing... Been trying to create my images into ICO but when it makes a grey background and its not transparent. Really need a way where I can make a person walking on the GUI and have all the images transparent! I have the walking part down just fine but I cant figure out how to get IMAGES transparent! Please Help Me! OminousIdol
Josbe Posted September 26, 2004 Posted September 26, 2004 Take a look:GUI Examples("GuiIconAni.au3" example, you can see two transparent icons "walking" ) You could use a icon's editor for do it.(search in Google) AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
OminousIdol Posted September 26, 2004 Author Posted September 26, 2004 (edited) Ok I already saw those and still have problem... Every time I try to make a icon and have some areas transpartent when I insert it into my GUI all the areas that are suppose to be transpartent are grey.... I know that they are transpartent because I put the Icon into a EXE and it was transparent! So I dont understand what I am doing wrong?? Also if you put a background on those two icons Racing around each icon a grey background will show up.. All I did was put a yellow label and made it size of the GUI and grey boxes are around the icons so they are not transparent correct? That is what I am getting at I need icons that are acutal transpartent not ones that just blend in with the GUI background!!!! Thanks OminousIdol Edited September 26, 2004 by OminousIdol
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