How to set the height of a GridPrint

18 views
Skip to first unread message

michael...@googlemail.com

unread,
Sep 29, 2010, 5:19:59 AM9/29/10
to SWT PaperClips
Hi,

how can I set the height of a row in the GridPrint? I cannot find a
method setting this value. Can anybody help me?

Cheers,
Michael

Matthew Hall

unread,
Sep 29, 2010, 5:32:58 PM9/29/10
to swt-pap...@googlegroups.com
Hi Michael,

GridPrint rows are automatically sized to fit the cell contents.  If you need the enforce a minimum cell height you must add a Print with that minimum height.

You could accomplish this with LayerPrint and EmptyPrint:

LayerPrint layer = new LayerPrint();
layer.add(cellContents);
layer.add(new EmptyPrint(0, 72)); // 72 points = 1 inch
grid.add(layer);

Matthew



-- Sent from my Palm Pre


--
You received this message because you are subscribed to the Google Groups "SWT PaperClips" group.
To post to this group, send email to swt-pap...@googlegroups.com.
To unsubscribe from this group, send email to swt-paperclip...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/swt-paperclips?hl=en.

Reply all
Reply to author
Forward
0 new messages