OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Lube on November 10, 2015, 01:17:13 AM

Title: Transparent Background Color For labels in front of a picture
Post by: Lube on November 10, 2015, 01:17:13 AM
Hello guys, I'm not able to made my text to look good..
I wanted the transparent bnackground of my labels in order to see the background picture (it's a picture tab in the background).
Any suggestion?

Thanks, Dennis
Title: Re: Transparent Background Color For labels in front of a picture
Post by: Fred Tomke on November 10, 2015, 01:42:43 AM
Hi, try a backgroundcolor of -24.
Regards, Fred
Title: Re: Transparent Background Color For labels in front of a picture
Post by: owenwengerd on November 10, 2015, 05:44:02 AM
It seems that the transparent background isn't really transparent, but just uses a background color that matches the foreground color of the form. I think there are some workarounds, but I don't have time at the moment to experiment. I will check later.
Title: Re: Transparent Background Color For labels in front of a picture
Post by: owenwengerd on November 10, 2015, 06:24:33 AM
I did a bit of experimenting, but I couldn't find any simple solution. One idea I have is to put both picture and text into an HTML control that covers the form. Maybe someone else has some ideas.
Title: Re: Transparent Background Color For labels in front of a picture
Post by: Fred Tomke on November 10, 2015, 10:45:35 AM
Sorry, Lube, haven't seen that you've already set -24 to backcolor. I've solved that using DrawText method, but I do not know if Owen has already had a test with it. In a single case I used it in a form.I recommend you to have a try with DrawImage and DrawText and a final StoreImage.
Regards, Fred