Sign in to follow this  
Followers 0
senthor

Error with creating pics in a gui

9 posts in this topic

#1 ·  Posted (edited)

Hi everyone!

I'm currently developing the next version of an already-launched program called gli modmanager, but I've a problem.

I'm creating several pics in the gui, and the following failure happens:

Parts of a picture become transparent, even if the window is NOT WS_EX_LAYERED AND no picture is created where the top-left pixel has the color being replaced.

Here's a screenshot:

post-35032-1226602327_thumb.png

On the left, you can see the pic in paint, right in the script.

The colors being replaced are all about RGB 239,239,239 to 241,241,241.

I just don't get it why.

Plz help!

Thanks

EDIT: There's a grey background-image, so don't wonder about the strange color of the wrong area!

Edited by senthor

Share this post


Link to post
Share on other sites



really nobody??

Then you can close...

I just saw your thread.

I've been seeing some obscure functionality in AutoIt with GUICtrlCreatePic about a year ago. Try setting the image's topleft pixel to something like 0xFF00FF and see if you still get this behavior.

Share this post


Link to post
Share on other sites

I tried that already. Nothing changed.

I made all pixels 1,1 0xFF00FF, but it didn't work.

I'm willing to look at it in the next 2 ~ 3 hours. Give me a script ready-to-test, included with the image.

Share this post


Link to post
Share on other sites

OK, that's a problem.

Cause the program is actually 2993 lines.

I copied only the gui to a new script, but the error doesn't occurs there.

Share this post


Link to post
Share on other sites

I copied only the gui to a new script, but the error doesn't occurs there.

Well, I guess that is a good thing. You've already excluded the fact that bug might be in AutoIt.

Keep on going trying to copy things from the original script and see at what point the bug occurs, and you can have a pretty good idea of what line is causing the bug. :mellow:

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  
Followers 0