Page 1 of 1

buttonimage is ok in vis. designer but when i run it messed

Posted: Mon Nov 01, 2010 4:41 pm
by sartic
I thought i made mistake when i copy same object but i checked all id and they are ok.
What can it be? All images are PNG 8bit. Using PB 4.50

Now i am designing GUI for my 1st serious project after my control test app (irc server/client) and it is not working at 1st step ;)

Re: buttonimage is ok in vis. designer but when i run it mes

Posted: Mon Nov 01, 2010 4:50 pm
by ts-soft
How could we help you. No source, no zodiac signs :wink:

Re: buttonimage is ok in vis. designer but when i run it mes

Posted: Fri Nov 05, 2010 11:59 am
by sartic
it works always when u disable "include binary bitmaps"

Re: buttonimage is ok in vis. designer but when i run it mes

Posted: Fri Nov 05, 2010 9:10 pm
by LuCiFeR[SD]
sartic wrote:it works always when u disable "include binary bitmaps"
Without the code which shows the problem we cannot help you, as we are not mind readers :P

Re: buttonimage is ok in vis. designer but when i run it mes

Posted: Thu Dec 09, 2010 1:45 pm
by sartic
I did it and erased it. Problem _is_ in code which designer generates wrong. I don't know when and why. I am using designer using widthout "include".

Re: buttonimage is ok in vis. designer but when i run it mes

Posted: Thu Dec 09, 2010 2:11 pm
by IdeasVacuum
...Never had a problem like that caused by Visual Designer, very likely that you have something odd in the code - PNG 8bit is unusual, that might have something to do with it. Is there any specific reason why 8bit is used?

Re: buttonimage is ok in vis. designer but when i run it mes

Posted: Thu Dec 09, 2010 3:36 pm
by sartic
IdeasVacuum wrote:...Never had a problem like that caused by Visual Designer, very likely that you have something odd in the code - PNG 8bit is unusual, that might have something to do with it. Is there any specific reason why 8bit is used?
at least 3x smaller size and for icons 256 color is enough :)

Re: buttonimage is ok in vis. designer but when i run it mes

Posted: Thu Dec 09, 2010 11:17 pm
by PureLust
Are you sure, you have "UsePNGDecoder()" in your Code?

Re: buttonimage is ok in vis. designer but when i run it mes

Posted: Fri Dec 10, 2010 2:22 am
by IdeasVacuum
at least 3x smaller size and for icons 256 color is enough
Well, unless your app is running on a mobile platform or you have thousands of images buttons, the file size saving means very little. However, if you are confident that your code is correct then I would check the validity of the image files with Irfan View (simply open them and re-save them).

http://www.irfanview.net/