Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #8424

Re: Icon draw question

From "Karl-Heinz" <invalid@invalid.invalid>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Icon draw question
Date 2015-09-22 21:04 +0200
Message-ID <d6dnb9Fqd05U1@mid.individual.net> (permalink)
References <d5121a48-5b41-45c0-96e5-0892c946c7db@googlegroups.com> <mtiv7d$hf6$1@speranza.aioe.org> <e69556bc-fd87-4c15-a46d-b0662e4048ef@googlegroups.com> <d65gkuFp69cU1@mid.individual.net> <6fb6b4eb-0d75-489d-8015-cad5be58accd@googlegroups.com>

Show all headers | View raw


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 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Icon draw question Fabio Romling Rotheia <pinbitmap@gmail.com> - 2015-09-18 18:03 -0700
  Re: Icon draw question Franz Rachbauer <office@rachbauer.org> - 2015-09-19 08:26 +0200
    Re: Icon draw question Fabio Romling Rotheia <pinbitmap@gmail.com> - 2015-09-19 05:54 -0700
      Re: Icon draw question "Karl-Heinz" <invalid@invalid.invalid> - 2015-09-19 18:25 +0200
        Re: Icon draw question Fabio Romling Rotheia <pinbitmap@gmail.com> - 2015-09-19 13:57 -0700
          Re: Icon draw question Franz Rachbauer <office@rachbauer.org> - 2015-09-22 08:13 +0200
          Re: Icon draw question Karl Wochele <kw@e©os-system.dot.de> - 2015-09-22 13:15 +0200
          Re: Icon draw question "Karl-Heinz" <invalid@invalid.invalid> - 2015-09-22 21:04 +0200
  Re: Icon draw question Fabio Romling Rotheia <pinbitmap@gmail.com> - 2015-09-22 12:57 -0700
  Re: Icon draw question Paulo Oliveira <paulo@clipinfor.com> - 2015-10-08 09:45 -0700
    Re: Icon draw question Fabio Romling Rotheia <pinbitmap@gmail.com> - 2015-10-12 21:50 -0700
      Re: Icon draw question Paulo Oliveira <paulo@clipinfor.com> - 2015-10-19 08:51 -0700
        Re: Icon draw question Fabio Romling Rotheia <pinbitmap@gmail.com> - 2015-10-19 16:20 -0700

csiph-web