PdfFormField ff = button.getField();
ff.setUserName("My tooltip text");
Paulo
________________________________________
From: Ernest Derry [EMAIL PROTECTED]
Sent: Wednesday, November 12, 2008 5:15 PM
To: [email protected]
Subject: [iText-questions] acroform button alt tag / title text
Hi everyone,
I'm fairly new to itext and I've just created an Acroform with submit
buttons. I've noticed that when I mouseover the buttons I get the
following:
"send the data to http://...my url"
is there any way of changing the text of this?
Thanks in anticipation of your help
My current code snippet is:
button = new PushbuttonField(writer,
new Rectangle(200, 0, 300, 60), "Exit");
button.setText("Exit");
button.setOptions(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
button.setBackgroundColor(Color.GRAY);
button.
setBorderStyle(PdfBorderDictionary.STYLE_BEVELED);
submit = button.getField();
submit.setAction(PdfAction.createSubmitForm(
topLevelPath+"//default",
null, PdfAction.SUBMIT_HTML_FORMAT |
PdfAction.SUBMIT_COORDINATES));
submit.setTitle("my title");
I've tried using setTitle but this doesn't do it.
Ernest.
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php