You can draw whatever you want. If you need a real form field button use PushbuttonField.

----- Original Message ----- From: "John Lazenby" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, February 18, 2006 10:02 AM
Subject: [iText-questions] Help on contentbyte drawButton...


Can anyone give me a clue how to change the colour of drawButton in a
contentbyte?

Basically, I'm loading a page, and attempting to add a button - which works
great...But my client wants the colour changed of the button... can it be
done? (please!)??

heres a code extract:

PdfContentByte canvas;
BaseFont bf2 = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.WINANSI,
BaseFont.EMBEDDED);

                   canvas.setFontAndSize(bf2, 13);
                   canvas.setColorStroke(Color.orange);
                   canvas.setColorFill(Color.lightGray);
canvas.drawButton(1f,he-0f,wi-1f,he-50f, "E-mail page to
a friend", bf2, 25f);

Is the drawbutton only able to draw grey/black (button/text)?

kind regards,

john lazenby

----------------------------------------------------
This mailbox protected from junk email by MailFrontier Desktop
from MailFrontier, Inc. http://info.mailfrontier.com




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to