Jump to content

Buttons + Transparency


dionel1969

Recommended Posts

Hello everybody:

 

I just start work with uniGUI in this week. I read it before, but I did not use it, so may be in the near future my questions will be caused by lack of knowledge.

 

I created a simple project in which I put a button (TUniSpeedButton) with a picture. The image is in BMP format because the Glyph property of the button will not let me use another, yet when the generation for WEB PNG format is generated. In the Windows Application it looks good with transparency, but on the WEB page the background is drawn with the color that supposed to be transparent. My questions are:

 

1- There is a way to do that, i. e. to obtain transparency for the WEB???

 

2- Will be possible to use the same color (Pixel Color at (1,1)) for Transparency in the PNG Generation?

 

3- Will be possible to add property "Transparent Color" for Transparency in the PNG Generation?

 

4- I noticed that the name of the images created for the buttons always use the same name and are created in the first request to the application and then used in all the remaining requests. Will be possible to use the same name of the button, and put a property in the Main Server Module to specify that do no delete the images??? In this case I can make PNG images by myself with the adecuate transparency.

 

Best regards, Dionel Acosta

Link to comment
Share on other sites

This issue is known an already logged:

 

0000848: Bitmap transparency display problem for Buttons

 

This will be fixed in one of the next builds.

 

Ok, thanks.

 

Where can I see the "Log of Issues"???

 

Dionel

Link to comment
Share on other sites

Hello everybody:

 

I just start work with uniGUI in this week. I read it before, but I did not use it, so may be in the near future my questions will be caused by lack of knowledge.

 

I created a simple project in which I put a button (TUniSpeedButton) with a picture. The image is in BMP format because the Glyph property of the button will not let me use another, yet when the generation for WEB PNG format is generated. In the Windows Application it looks good with transparency, but on the WEB page the background is drawn with the color that supposed to be transparent. My questions are:

 

1- There is a way to do that, i. e. to obtain transparency for the WEB???

 

2- Will be possible to use the same color (Pixel Color at (1,1)) for Transparency in the PNG Generation?

 

3- Will be possible to add property "Transparent Color" for Transparency in the PNG Generation?

 

4- I noticed that the name of the images created for the buttons always use the same name and are created in the first request to the application and then used in all the remaining requests. Will be possible to use the same name of the button, and put a property in the Main Server Module to specify that do no delete the images??? In this case I can make PNG images by myself with the adecuate transparency.

 

Best regards, Dionel Acosta

 

 

Hi,

 

Set Pixel Color at (1,1) = clFuchsia, that works for Web Mode as transparent color.

 

reg. Piotrek

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...