Jump to content

Transparent background GIF?


 Share

Recommended Posts

  • Moderators

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

I might be blind, but no, I really could not find anything. A majority of those threads are about making the gui window itself transparent - I don't want that. There were 3 solutions I found in those threads:

WS_EX_LAYERED - This makes the window see through; I just want the background of a .gif pic control to be transparent (it displays as white)

Larry's DLL - This uses a BMP as a transparency mask for the entire GUI window, so that wont work for me

Creating a new GUI with just the GIF on it - I'm using a tabbed control so this would be more work than its worth

Am I missing anything? I probably am but there was nothing I could see.

Link to comment
Share on other sites

I might be blind, but no, I really could not find anything. A majority of those threads are about making the gui window itself transparent - I don't want that. There were 3 solutions I found in those threads:

WS_EX_LAYERED - This makes the window see through; I just want the background of a .gif pic control to be transparent (it displays as white)

Larry's DLL - This uses a BMP as a transparency mask for the entire GUI window, so that wont work for me

Creating a new GUI with just the GIF on it - I'm using a tabbed control so this would be more work than its worth

Am I missing anything? I probably am but there was nothing I could see.

Can youshow some code and the gif with the problem?

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

The code is simply

$Pic1 = GUICtrlCreatePic("graphics\mail.gif", 0, 0, 65, 65)

Here is a screenshot. Notice the BG is white - that is what is marked as transparent on the GIF.

Posted Image

The gif is attached.

post-3901-1243648645_thumb.gif

Link to comment
Share on other sites

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