I am not entirely sure what you want but if you want to display an image
then use an ImagePanel to do it. If you don't want the panel itself to
draw (only the image) then you could set SetPaintBackgroundEnabled(
false ) and it won't draw its background.

- Alfred

----Original Message----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kamran
Sent: Wednesday, June 29, 2005 6:26 AM To:
[email protected] Subject: [hlcoders] Making
"EditablePanel" bg transparent

> [ Converted text/html to text/plain ]
> Here is my PaintBackground function:
> virtual void PaintBackground()
>     {
>         SetBgColor( Color(220, 216, 173, 255) );
>         SetPaintBackgroundType( 0 );
>         BaseClass::PaintBackground();
>     }
> So, right now, the BG color is the color of the background01.vtf
> color used (I positioned it onto a clear spot). My question is this:
> How can I make the background transparent, without making the whole
> panel disappear? Basically, I used the DrawSetTextureFile to display
> my mod logo on the menu.
> Is there an easier way to do this? Or
> can I just make the BG transparent? (My image has alpha already)

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to