User Tools

Site Tools


trn_set_transparent_control_.htm
Navigation:  Language Reference > 9 -  Window and Report Attributes > Window and Report Attributes >====== TRN (set transparent control) ====== Previous pageReturn to chapter overviewNext page

TRN

blk2blue.jpg

The TRN attribute (PROP:TRN) on a control specifies the characters print or display transparently, without obliterating the background over which the control is placed. This attribute is valid in Clarion Win32 Windows, and also for REPORT structures in both Clarion Win32 and Clarion#. Only the dots or pixels required to create each character are printed or displayed. This allows you to place the control directly on top of an IMAGE without destroying the background picture.

Example:

CustRpt REPORT,AT(1000,1000,6500,9000),THOUS

        FORM,AT(0,0,6500,9000)

         IMAGE('PIC.BMP'),USE(?I1)AT(0,0,6500,9000)     !Full page image

         !Transparent string on the image:

         STRING('String Constant'),AT(10,0,20,20),USE(?S1),TRN

        END

       END

WinOne WINDOW,AT(0,0,160,400)

       IMAGE('PIC.BMP'),USE(?I1),FULL                   !Full window image

       !Transparent string on image

       STRING('String Constant'),AT(10,0,20,20),USE(?S1),TRN

      END

trn_set_transparent_control_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)