Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Karl-Heinz" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Icon draw question Date: Tue, 22 Sep 2015 21:04:36 +0200 Lines: 36 Message-ID: References: <6fb6b4eb-0d75-489d-8015-cad5be58accd@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: individual.net YKXLG8KbUkiZc0F9jF54Rwl8Dtm1kStD4SdhlQJzUrJ1J/onw= Cancel-Lock: sha1:bhTautz9N0uFoISHGjr1URqW4DU= In-Reply-To: <6fb6b4eb-0d75-489d-8015-cad5be58accd@googlegroups.com> X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 Xref: csiph.com comp.lang.clipper.visual-objects:8424 Hi Fabio, >> Another question: The icon is not transparent, like when i draw with >> DrayIconEx. >> Is there a way to make it transparent? GetSysColor ( COLOR_APPWORKSPACE ) gives you the background color of the shellwindow. The default result is equal to the rgb values 171,171,171. 1. When you create the control in this way: NOTE: instead of self:handle ( 4 ) i´m using self:handle() and assign a background brush to the control. _oFixedIcon := FixedIcon { SELF:handle( ) , 4711 , Point { 20 ,20 }} _oFixedIcon:Size := Dimension { 16 , 16 } _oFixedIcon:Background := Brush { Color { 171,171,171 } } _oFixedIcon:SetIcon ( _oRedIcon ) // initial icon _oFixedIcon:Show() your current icons should be shown transparent, but self:handle() is the wrong handle - when you resize the shell you can see what happens to the icons. 2. So - IMO - the only way is to stay with handle(4) and change the transparent color of your icons to GetSysColor ( COLOR_APPWORKSPACE ) regards Karl-Heinz