Hi,

thank you all for the quick responses.

> You can always set the fields to "Read Only" as well....
Ok, didn't know that. Since I'm having textfields in the future,
I should prefer this instead of fonts with radio-button/checkbox glyphs.

So here comes another problem. Could someone provide me a 
link/hint/code-snippet, how to add a radio-button/checkbox to a table cell.
I read that I would have to add some PdfPCellEvent.


// my code so far
RadioRectangle radioRectangleEvent= new RadioRectangle();

PdfPTable table = new PdfPTable(2);
table.setWidths(new int[] { 5, 100});

PdfPCell radioCell = new PdfPCell(table.getDefaultCell());
radioCell.setCellEvent(radioRectangleEvent);
// dont know what to do
...
table.addCell(radioCell);

// ...
private class RadioRectangle implements PdfPCellEvent
{
    public void cellLayout(PdfPCell cell, Rectangle rect,   PdfContentByte[] 
canvas)
    {
      // dont know what to do
      ...
    }
}


Thanks
Jonny




-------- Original-Nachricht --------
> Datum: Wed, 22 Dec 2010 09:13:01 -0800
> Von: Leonard Rosenthol <[email protected]>
> An: "[email protected]" 
> <[email protected]>
> Betreff: Re: [iText-questions] Unmodifiable radiobuttons/checkboxes in table 
> cell

> You can always set the fields to "Read Only" as well....
> 
> -----Original Message-----
> From: 1T3XT BVBA [mailto:[email protected]] 
> Sent: Wednesday, December 22, 2010 12:10 PM
> To: [email protected]
> Subject: Re: [iText-questions] Unmodifiable radiobuttons/checkboxes in
> table cell
> 
> Op 22/12/2010 17:49, Johannes Becker schreef:
> > Hi,
> >
> > I'm trying to put radio buttons/checkboxes (checked and unchecked) in a
> table cell. These buttons shouldn't be modifiable (i.e. only for display).
> So you don't need an interactive form?
> Then you should use a font containing checkbox glyphs (for instance 
> wingdings).
> >   As far as I understood, fields like RadioCheckField are always
> modifiable.
> Why would you use RadioCheckField if you don't need an interactive form?
> > Is there another way to achieve this.
> Search for a font that has checkboxes, use those glyphs.
> If you don't like this solution: create your own Type3 font so that you 
> can design your own checkboxes.
> Or use an image (for instance wrapped in a Chunk).
> 
> ------------------------------------------------------------------------------
> Forrester recently released a report on the Return on Investment (ROI) of
> Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
> within 7 months.  Over 3 million businesses have gone Google with Google
> Apps:
> an online email calendar, and document program that's accessible from your
> browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
> 
> ------------------------------------------------------------------------------
> Forrester recently released a report on the Return on Investment (ROI) of
> Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
> within 7 months.  Over 3 million businesses have gone Google with Google
> Apps:
> an online email calendar, and document program that's accessible from your
> browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 100,- Euro! https://freundschaftswerbung.gmx.de

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to