cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Styler Question: Boxing

JRKetelsen
1-Newbie

Styler Question: Boxing

Hello;



I am attempting to draw a dashed box around an element. The element
will have an attribute that identifies the need for a dashed box.



Is this possible with Styler? Will I have to edit the source file to
accomplish this? Is it possible with FOSI?



Thank you,



JR





9 REPLIES 9

Boxing is possible with FOSI. According to the 5.3M030 Styler help 5808
file (Converting a FOSI to a Stylersheet), boxing is not a supported
feature in Styler.

FOSI source edits in Styler may also be an avenue to explore.

Also, during the PTC-User Conference, Styler guru and development lead
John Lloyd demonstrated many advanced tips and tricks. Several of the tips
revolved around custom tables. Presumably, a Styler-generated table could
be used to display a rule around element content, but I don't think that
will get you dashed rules.

Regards,
Jason





"Ketelsen, JR" <jr.ketelsen@flatironssolutions.com>
08/30/2007 09:24 AM
Please respond to
-


To
-
cc

Subject
[adepters] - Styler Question: Boxing






Hello;

I am attempting to draw a dashed box around an element. The element will
have an attribute that identifies the need for a dashed box.

Is this possible with Styler? Will I have to edit the source file to
accomplish this? Is it possible with FOSI?

Thank you,

JR


-----End Original Message-----

Thanks Jason!

JR

JR,

You can do boxing of many sorts with FOSI (not Styler) meaning around reagions, elements, page headers and footers, etc.

However, though the output spec for FOSI supports "double", "tripple", "dot", "dash". "blank", "single" and "bold" styles of lines, Arbortext only supports "blank", "single" and "bold".

Hope this helps,

Bob

Thanks Bob...



I was afraid that was the answer


Hi JR,

If you're willing to use page layout tags atipl:startline and atipl:endline, the following FOSI code produces the attached PDF.

You will need to print your output to see what it really looks like -- ruling doesn't always look right in Preview and PDF because of roundoff.

You can tweak the formatting so dashes on the sides look the same as on top and bottom. You could try using an em dash for the dashfill, or changing font sizes for dashes and rules, or adjusting rule weight.

Also, you could create a graphic with corners for the top and bottom line of dashes and output it using putgraph on the e-i-c for warning instead of the usetexts.

BOXING WITH DASHES

<charfill literal="–" padding="2pt" cfid="dashfill">

<flowtext numcols="1" balance="0">
<column width="4in"></flowtext>

<e-i-c gi="warning">
<charlist inherit="1" charsubsetref="block" keep-together=" prespace&quot;=">
<usetext source="dashfill" placemnt="before">
<subchars charsubsetref="block">
<indent leftind="-6pt" rightind="-6pt" firstln="*"></subchars>
</usetext>
<usetext source="dashfill" placemnt="after">
<subchars charsubsetref="block">
<indent leftind="-6pt" rightind="-6pt" firstln="*"></subchars>
</usetext>
</charlist>
</e-i-c>

<e-i-c gi="atipl:startline" context="warning">
<charlist charsubsetref="startline">
<indent leftind="-6pt" firstln="*">
<ruling thick="6pt" lentype="spec" speclen="0.5pt" type="single">
<indent leftind="-6pt" rightind="0" firstln="*"></ruling>
<usetext source="5.5pt"></usetext>
</charlist>
</e-i-c>

<e-i-c gi="atipl:endline" context="warning">
<charlist charsubsetref="startline">
<indent leftind="0" rightind="-6pt" firstln="*">
<presp minimum="-10pt" nominal="-10pt" maximum="-10pt" condit="keep"&lt;br"/>priority="force">
<usetext source="4in5.5pt"></usetext>
<ruling thick="6pt" lentype="spec" speclen="0.5pt" placemnt="before"&lt;br"/>type="single">
<indent leftind="0" rightind="-6pt" firstln="*"></ruling>
</charlist>
</e-i-c>

Good luck!
Suzanne Napoleon
www.FOSIexpert.com

Hello;

I am attempting to draw a dashed box around an element. The element will have an attribute that identifies the need for a dashed box.

Is this possible with Styler? Will I have to edit the source file to accomplish this? Is it possible with FOSI?
Thank you,
JR






Thanks Susan! I will give that a try.



JR Ketelsen


Suzanne;



Does this solution imply that FOSI is being used, or can this solution
be implemented using FOSI source edits in a .style file?



Thank you,



JR




JR,

The Boxing with Dashes code is FOSI. The few times I've made FOSI source edits in .style files, they worked, but they didn't involve atipl markup, so I can't say for sure.

Good luck!

Suzanne Napoleon
www.FOSIexpert.com




JR,

The Insert menu for Add before/after element content (under Gentext) has an item Insert Leaders, Rule or Space. You can define Leader text there. The column width would be defined in the pageset.

Good luck!
Suzanne

"Ketelsen, JR" <jr.ketelsen@flatironssolutions.com> wrote: v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} st1\:*{behavior:url(#default#ieooui) } Suzanne;

Thank you.

I guess a more specific question would be:

Where does one edit the following in the .style file?

<charfill literal="–" padding="2pt" cfid="dashfill">

<flowtext numcols="1" balance="0">
<column width="4in"></flowtext>



I do not think that I can add these before the e-i-c rule in the FOSI edit.

Thanks for any pointers.

JR



Announcements