Skip to main content



      Home
Home » Archived » BIRT » how to use setPaddingLeft?
how to use setPaddingLeft? [message #201559] Fri, 17 November 2006 03:21 Go to next message
Eclipse UserFriend
Hello,

I was wondering if someone could help me to set padding dynamically?
I am using table with the number of groupings, and would like to
set left padding to display, i.e. if group exists move padding for this
element by 1. I was hoping that with script I should be able to do it,
using variable position and increment this value onCreate for each Group.
However, I do not know how to use setPaddingLeft on value to set padding.

Can someone help, please?

Thanks a lot, Mira
Re: how to use setPaddingLeft? [message #201686 is a reply to message #201559] Fri, 17 November 2006 15:09 Go to previous message
Eclipse UserFriend
If you define a variable in beforeFactory say:
pdvar = 0;

Then in the on create of a control:
pdvar ++;

this.getStyle().paddingLeft = parseInt(pdvar) + "pt";



This will increment the padding by one everytime the control is created.

Jason

"Mira" <mkaloper@ucdavis.edu> wrote in message
news:f51eeef89e8e5ad3180e11948e88b8bc$1@www.eclipse.org...
>
> Hello,
>
> I was wondering if someone could help me to set padding dynamically?
> I am using table with the number of groupings, and would like to set left
> padding to display, i.e. if group exists move padding for this element by
> 1. I was hoping that with script I should be able to do it,
> using variable position and increment this value onCreate for each Group.
> However, I do not know how to use setPaddingLeft on value to set padding.
>
> Can someone help, please?
> Thanks a lot, Mira
>
Previous Topic:Width in ems for PDF not working?
Next Topic:hide the parameter box???
Goto Forum:
  


Current Time: Tue May 13 21:02:57 EDT 2025

Powered by FUDForum. Page generated in 0.06075 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top