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!
Text Line Background |
Post Reply |
Author | |
mburian
Beginner Joined: 10 Jul 06 Location: Australia Status: Offline Points: 17 |
Post Options
Thanks(0)
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
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store