Focal Point
[CLOSED] Borders on string text

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/181106514

April 09, 2010, 12:53 PM
Ted Michalski
[CLOSED] Borders on string text
How do you turn borders on in and OBJECT=STRINg text box? I tried BORDER=ON and other things and I can't get it to work.

This message has been edited. Last edited by: Kerry,


7.7.02
Windows
EXCEL, PDF, CSV, TEXT
April 09, 2010, 01:08 PM
Ted Michalski
OBJECT=STRING, NAME='header8', TEXT=' &ECL_TITLE', POSITION=(0.9 1.3), MARKUP=ON, WRAP=ON, DIMENSION=(11.0 0.167), style=normal, METADATA='', $


7.7.02
Windows
EXCEL, PDF, CSV, TEXT
April 09, 2010, 03:58 PM
Dan Satchell
I don't believe the BORDER keyword is supported with OBJECT. However, HTML markup is supported (thus MARKUP=ON), so you could try adding a border with the DIV tag and an in-line border attribute.

OBJECT=STRING, NAME='header8', TEXT='<div style="border: 3px solid red;">&ECL_TITLE</div>',
POSITION=(0.9 1.3), MARKUP=ON, WRAP=ON, DIMENSION=(11.0 0.167), style=normal, METADATA='', $



WebFOCUS 7.7.05
April 10, 2010, 02:42 AM
Ram Prasad E
What is the output format?

For PDF/DHTML. this will work
TABLE FILE CAR
PRINT 
CAR 
COUNTRY
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE PCHOLD FORMAT PDF
HEADING
"Header text 1"
"Header text 2"
"Header text 3"
" "
FOOTING BOTTOM
"Footer text 1"
"Footer text 2"
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, PAGESIZE='LETTER', ORIENTATION=LANDSCAPE, LEFTMARGIN=0.25, RIGHTMARGIN=0.25, $
TYPE=HEADING, JUSTIFY=CENTER, $
TYPE=FOOTING, LINE=1,JUSTIFY=LEFT, $
TYPE=FOOTING, LINE=2,JUSTIFY=RIGHT, $

OBJECT=BOX, POSITION=(0.15 7.75),DIMENSION=(2 0.25),$
OBJECT=BOX, POSITION=(9.15 7.95),DIMENSION=(1.75 0.25),$

OBJECT=BOX, POSITION=(0.15 0.25),DIMENSION=(10.5 0.6), COLOR=RGB(121 121 121), $

OBJECT=LINE, POSITION=(6.5 3.77),DIMENSION=(2 0),$

OBJECT=STRING, TEXT='Sample Floating Text', POSITION=(6.5 3.75), $

ENDSTYLE
END


OBJECT=STRING/BOX/LINE are supported in TABLE FILE request from 7.1.6 onwards. Not sure about prior release.

You can use OBJECT=BOX in PDF Layout Painter(Document Composer) too.

This message has been edited. Last edited by: Ram Prasad E,


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/
April 10, 2010, 09:21 AM
Dan Satchell
My suggestion in my earlier post of using a DIV tag with an in-line border attribute does not work. Ram's suggestion of using OBJECT=BOX is probably the way to go. Here is the syntax for OBJECT=BOX.

OBJECT=BOX, POSITION=(x y), DIMENSION=(xdim ydim), BACKCOLOR=c, BORDER=b, BORDER-COLOR=bc, BORDER-STYLE=bs, $


So this code will produce a red box around the heading in Ram's example:

OBJECT=BOX, POSITION=(0.15 0.25), DIMENSION=(10.5 0.6), BORDER=HEAVY, BORDER-COLOR=RED, $



WebFOCUS 7.7.05
April 10, 2010, 11:47 AM
Doug
I agree with Dan regarding the "OBJECT=BOX". However, keep in mind that this is a statically placed BOX, So, if your output is not static (all data always in a specific place) then this will not work. However, 7.6.11 and "8" will have some enhancement to HEADINGs and FOOTINGs... Check out the "WebFOCUS Release 7.7 Highlights" webinar which should be available on the IB site (original Air date: Thursday, April 8th, 2010 @ 11:00 a.m. Eastern Time).
April 16, 2010, 06:25 AM
Ted Michalski
I will wait for a future version. Issue Closed.


7.7.02
Windows
EXCEL, PDF, CSV, TEXT