on 08-17-2006 3:43 PM
Hi,
1.I need to draw/simulate Vertical line between two Labels.
How can I achieve that? Can somebody give some sample code?
2.Also, how to set LayoutData Properties for a textView at runtime?
Eg. LayoutData is of type MatrixHeadData like:
tv.createLayoutData(IWDMatrixHeadData.class);
Now how to set CellDesign Property at runtime for textView tv?
Regards,
Daman
Damandeep,
1. Use matrix layout. Place two lables, then for second label select in layout properties gutter as medium with rule.
2. IWDMatrixHeadData cell = (IWDMatrixHeadData)tv.createLayoutData(IWDMatrixHeadData.class);
Now use cell to alter properties.
Valery Silaev
EPAM Systems
Message was edited by: Valery Silaev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Damandeep,
No -- you cannot this way. This would require altering of comple CSS theme usign WD Theme Editor (rather complex task and result affects all applications).
Try to create matrix layout with 3 cells.
1. Label, valign=middle, no gutter.
2. Image (we will discuss it later), valign=middle, gutter=medium without rule.
3. Label, valign=middle, gutter=medium without rule.
For image create 1x1 black GIF or PNG image and place it under src/mimes/components/<qualified-component-name> folder. Name file, say black.png.
Assign plack.png as image source, set image width to 1px (or 2px or more -- this will control width), and height to 10pt -- this is approximate height of labels.
This way you may emulate gutter of any color.
Valery Silaev
EPAM Systems
Hi,
You can set the layout as
<textview>.createLayoutData(IWDMatrixData.class);
and design properties like
<textview>.setDesign(WDTextViewDesign.<designs)
As per i know there is no provision for vertical lines
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.