Print Page | Close Window

Text Line Background

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=700
Printed Date: 16 May 24 at 12:56AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Text Line Background
Posted By: mburian
Subject: Text Line Background
Date Posted: 02 Apr 07 at 3:39PM
Hi All,
 
Does anyone out there know how to set the background color of a text line.  The code I tried is...:
 
        If gBLUE = "ON" Then
                Call QP.SetTextHighlight(0)
                Call QP.SetTextHighlightColorCMYK(0.5, 0.5, 0.5, 0.3)
                Call QP.SetTextColor(0, 0, 1)
                Shadow = False
            Else
               Call QP.SetTextHighlight(1)
               Call QP.SetTextHighlightColorCMYK(0.8, 0.8, 0.8, 0.3)
               Call QP.SetTextColor(0, 0, 0)
               Shadow = True
        End If
        'Draw text line
        Call QP.DrawText(X, Y, mytextline)
 
I am trying to get an "Alternate line" shadow patern happening but am not getting much success.
 
Ideally I do not want to change the color of the text, but the background of each alternate line.
 
Kind Regards
Mick


-------------
Mick Burian



Replies:
Posted By: Ingo
Date Posted: 10 Apr 07 at 8:28AM
Hi Mick!

More as you want but ...
With ...
QP.SetFillColor(colr,colg,colb); // colr=R(0.0 to 1.0)
                                                // colg=G(0.0 to 1.0)
                                                // colb=B(0.0 to 1.0)
... you can change the complete background color.
With ...
QP.DrawBox( ... )
... ypu can determine the area.

Best regards,
Ingo


                                              



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk