From: Jorge Rosado on
Hi John,

Try this:

oDCoFixedText:lUseDrawText := false

Regards,

Jorge Rosado
--

"John Martens" <adsl672100(a)tiscali.nl> escreveu na mensagem
news:484cca76$0$24413$5fc3050(a)news.tiscali.nl...
>I want to set a fixedtext control at runtime on a window with an icon or
>bitmap on it. The FT is supposed to be on top of the bitmap.
>
> The help of VO 2.8 suggests that the background will be tranparent by
> default. The help file:
> As of Visual Objects version 2.7 the FixedText control supports the
> DrawText and Transparent options. These are on by default.
>
> The fixedtext does not seem to have a transparent background at all when I
> use this code:
>
> oFixedIcon := FixedIcon{SELF, 33, Point{10,10}}
> oFixedIcon:SetIcon(IconBitmapBuild{})
> oFixedIcon:Show()
>
> oFixedText := FixedText{SELF, 44, Point{13,13}, Dimension{100,15}, 'This
> is a test by displaying a text'}
> oFixedText:Show()
>
> I cannot find any method of access called transparent in the fixed text.
>
> How do I make the background transparent ?
>
> John


From: Karl Wochele on
Hi John,

you could try:

oFixedText:BackGround := Brush{BRUSHHOLLOW}

This should work.

HTH
Karl

John Martens schrieb:
> I want to set a fixedtext control at runtime on a window with an icon or
> bitmap on it. The FT is supposed to be on top of the bitmap.
>
> The help of VO 2.8 suggests that the background will be tranparent by
> default. The help file:
> As of Visual Objects version 2.7 the FixedText control supports the
> DrawText and Transparent options. These are on by default.
>
> The fixedtext does not seem to have a transparent background at all when
> I use this code:
>
> oFixedIcon := FixedIcon{SELF, 33, Point{10,10}}
> oFixedIcon:SetIcon(IconBitmapBuild{})
> oFixedIcon:Show()
>
> oFixedText := FixedText{SELF, 44, Point{13,13}, Dimension{100,15}, 'This
> is a test by displaying a text'}
> oFixedText:Show()
>
> I cannot find any method of access called transparent in the fixed text.
>
> How do I make the background transparent ?
>
> John
From: John Martens on
Jorge,

This does also make no change. I now use a red BMP to show first and
then the text.

The background of the text is white (and not red as it would be when the
background of the FT would is transparant)

Regards,
John


Jorge Rosado schreef:
> Hi John,
>
> Try this:
>
> oDCoFixedText:lUseDrawText := false
>
> Regards,
>
> Jorge Rosado
From: John Martens on
Karl,

That did it. Thanks.

John


Karl Wochele schreef:
> Hi John,
>
> you could try:
>
> oFixedText:BackGround := Brush{BRUSHHOLLOW}
>
> This should work.
>
> HTH
> Karl
>
> John Martens schrieb:
>> I want to set a fixedtext control at runtime on a window with an icon
>> or bitmap on it. The FT is supposed to be on top of the bitmap.
>>
>> The help of VO 2.8 suggests that the background will be tranparent by
>> default. The help file:
>> As of Visual Objects version 2.7 the FixedText control supports the
>> DrawText and Transparent options. These are on by default.
>>
>> The fixedtext does not seem to have a transparent background at all
>> when I use this code:
>>
>> oFixedIcon := FixedIcon{SELF, 33, Point{10,10}}
>> oFixedIcon:SetIcon(IconBitmapBuild{})
>> oFixedIcon:Show()
>>
>> oFixedText := FixedText{SELF, 44, Point{13,13}, Dimension{100,15},
>> 'This is a test by displaying a text'}
>> oFixedText:Show()
>>
>> I cannot find any method of access called transparent in the fixed text.
>>
>> How do I make the background transparent ?
>>
>> John
From: Jorge Rosado on
Ok,

Try to set the property of the fixedtext control first:
oDCoFixedText:SetExStyle(WS_EX_TRANSPARENT,true)

Jorge Rosado


--

"John Martens" <adsl672100(a)tiscali.nl> escreveu na mensagem
news:484ce2a2$0$24393$5fc3050(a)news.tiscali.nl...
> Jorge,
>
> This does also make no change. I now use a red BMP to show first and then
> the text.
>
> The background of the text is white (and not red as it would be when the
> background of the FT would is transparant)
>
> Regards,
> John
>
>
> Jorge Rosado schreef:
>> Hi John,
>>
>> Try this:
>>
>> oDCoFixedText:lUseDrawText := false
>>
>> Regards,
>>
>> Jorge Rosado


 |  Next  |  Last
Pages: 1 2
Prev: Highlight Fixed Text
Next: ADS DataDictionary ADT SQL