how to use setPaddingLeft? [message #201559] |
Fri, 17 November 2006 03:21  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.06075 seconds