4D SYSTEMS FORUM

Register New Posts
 
 
 


Reply
 
Author Comment
 
pgerlach

Registered: 26/05/12
Posts: 19
Reply with quote #1 
Hello,

I noticed a strange behavior with text transparency : if I use txt_Opacity(TRANSPARENT) , it works ... until the next gfx_Cls(). Is is normal ?
ex: if I do

txt_Opacity(TRANSPARENT);
print("I am transparent");

it works. But not if I do :

txt_Opacity(TRANSPARENT);
gfx_Cls();
print("I am NOT transparent although I should");

Is it normal ? I'm working with a uLCD24-PT GFX (i.e Picasso GFX2). I have attached a small 4dgl program showing my problem.


Thanks

-- 
Pierre-Rudolf Gerlach

 
Attached Files:
4dg txt_transparent.4dg (326 Bytes, 2 views)

__________________
pierre

meldavia

Registered: 18/03/07
Posts: 900
Reply with quote #2 
Yes, gfx_Cls returns a few states to the default values, such as

transparency turned OFF
outline colour set to BLACK
opacity set to OPAQUE
pen set to OUTLINE
line patterns set to OFF
right text margin set to full width
text magnifications set to 1
all origins set to 0:0

Easy way to maintain settings and clear screen is to draw a filled rectangle with the required background colour.



__________________
Regards,
Dave
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Powered by Website Toolbox - Create a Website Forum Hosting, Guestbook Hosting, or Website Chat Room for your website.