Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Text Line Background
  FAQ FAQ  Forum Search   Register Register  Login Login

Text Line Background

 Post Reply Post Reply
Author
Message
mburian View Drop Down
Beginner
Beginner
Avatar

Joined: 10 Jul 06
Location: Australia
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mburian Quote  Post ReplyReply Direct Link To This Post Topic: Text Line Background
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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


                                              
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store