Custom dashed border
Hello everyone.
For a custom project I've created a PhotoViewer, that simply shows images and fades them in and out along with a title and some text. I wanted to create a dashed border to put around these images and created my own implementation of a UIComponent. I found a fantastic example here:
http://cookbooks.adobe.com/post_Creating_a_dashed_line_custom_border_with_dash_and-13286.h tml
I modified it a bit, as I only wanted the border to be on top and bottom sides.
(see at the bottom of this post for source code)
The problem first shows itself when I put the variables "dashLen" and "dashGap" to 1. I only want the dashes to be one pixel wide and one pixel apart from each other. The border at the top of the images shows up exactly as I expected. The border at the bottom does not. The dashes seem 'fatter' somehow, almost as if a couple of lines are drawn right on each other. I want the bottom border to be exactly the same as the top border, of course.
The code for drawing these lines seems to be exactly the same, so I don't know what's causing this problem.
Can any of you give me a hand?
Thanks in advance
Full source code is here:
<mx:Canvas>
<mx:Dissolve alphaFrom="1" alphaTo="0" id="fadeOut" duration="1000" targets="{[imageToShow, title, text]}" />
<mx:Dissolve alphaFrom="0" alphaTo="1" id="fadeIn" duration="1000" targets="{[imageToShow, title, text]}" />
<mx:HBox borderSkin="photoViewer.Dashborder" styleName="tightDashBorder" paddingTop="1" paddingBottom="1" borderColor="#6666CC" borderThickness="1" id="container" width="95%">
<mx:VBox verticalAlign="middle" verticalGap="0" height="90%" width="255">
<mx:TextArea color="#6666CC" paddingTop="35" height="20%" width="255" id="title"/>
<mx:TextArea color="#333333" height="80%" width="255" id="text"/>
</mx:VBox>
<mx:Image width="510" height="299" id="imageToShow" maintainAspectRatio="true" />
</mx:HBox>
</mx:Canvas>
The dashBorder class:
import flash.display.LineScaleMode;
import mx.core.UIComponent;
public class Dashborder extends UIComponent {
private var dashlen:Number = 5;
private var gaplen:Number = 5;
public function Dashborder(){
super();
override protected function updateDisplayList (unscaledWidth:Number, unscaledHeight:Number):void{
super.updateDisplayList(unscaledWidth, unscaledHeight);
var borderThickness:int = getStyle("borderThickness");
var borderColor:int = getStyle("borderColor");
graphics.clear();
graphics.lineStyle(borderThickness, borderColor, 1, false, LineScaleMode.NONE)
if (getStyle("dashlen")) {
this.dashlen = getStyle("dashlen");
if (getStyle("gaplen")) {
this.gaplen = getStyle("gaplen");
drawBorder(this.x, this.y, unscaledWidth, unscaledHeight, this.dashlen, this.gaplen);
public function drawLine(x1:Number, y1:Number, x2:Number, y2:Number, dashlen:Number, gaplen:Number): void {
if((x1 != x2) || (y1 != y2)){
var incrlen:Number = dashlen + gaplen;
var len:Number = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
var angle:Number = Math.atan((y2 - y1) / (x2 - x1));
var steps:uint = len / (dashlen + gaplen);
var dashstepx:Number = dashlen * Math.cos(angle);
if (x2 < x1) dashstepx *= -1;
var dashstepy:Number = dashlen * Math.sin(angle);
var gapstepx:Number = gaplen * Math.cos(angle);
if (x2 < x1) gapstepx *= -1;
var gapstepy:Number = gaplen * Math.sin(angle);
var stepcount:uint = 0;
while ((stepcount++) < steps) {
var dashstartx:Number;
var dashstarty:Number;
var dashendx:Number;
var dashendy:Number;
if(x1 == x2 && y1 != y2){
dashstartx = dashendx = x1;
if(y2 > y1){
dashstarty = y1 + ((stepcount-1) * (dashlen + gaplen));
dashendy = dashstarty + dashlen;
}else{
dashstarty = y1 - ((stepcount-1) * (dashlen + gaplen));
dashendy = dashstarty - dashlen;
}else if(y1 == y2 && x1 != x2){
dashstarty = dashendy = y1;
if(x2 > x1){
dashstartx = x1 + ((stepcount-1) * (dashlen + gaplen));
dashendx = dashstartx + dashlen;
}else{
dashstartx = x1 - ((stepcount-1) * (dashlen + gaplen));
dashendx = dashstartx - dashlen;
graphics.moveTo(dashstartx, dashstarty);
graphics.lineTo(dashendx, dashendy);
private function drawBorder(x1:Number, y1:Number, width:Number, height:Number, dashlen:Number, gaplen:Number) : void {
drawLine(x1, y1, x1 + width, y1, dashlen, gaplen); //top border
drawLine(x1 + width, y1 + height, x1, y1 + height, dashlen, gaplen); //bottom border
Sorry for the bump, but does anyone have an idea for how to solve this issue? I'm really stuck with this.
Thanks
Similar Messages
-
Infopath cannot submit the form because it contains errors. Errors are marked with either a red asterik(required fields) or a red, dashed border (invalid values).
Press Ctrl+Shift+O for next error or Press Ctrl+Shift+I for error details
Please help me, Thank in advance.
Sravan.Hi Sravan, this means that one or more of the fields are required to be filled in or have validation set up on them so that the information entered matches a certain criteria. Make sure what's entered matches what's required. If the form still can't be
submitted, check the rules set in InfoPath and the list/library to see what's causing the error(s).
cameron rautmann -
PSE 5.0 - Dashed Border
Hello...
In Photoshop Elements 5.0 I've created a banner 500 x 135 pixels with text inside it.
When I save that banner it has a solid border around it.
What I'd like is a dashed border (a "coupon" look with dashes all around.)
How do I create a dashed border for my banner?
Thank you!Thanks for your suggestion - cool idea.
After trying your suggestion with the brushes it still leaves a "bounding box" with straight line border (in addition to the dashes). The dashes sit within the bounding box area.
I need the bounding box itself to be dashes, not a straight line. -
How can i custom the border of a JMenu ?
Hello everydoby,
i would like to custom the border of a JMenu.
i know that it's possible to custom the border of a JMenuItem.
but for JMenu, the thing seems to be more difficult.
can you help me please ?
thanks for all.
FMA.I badly expressed myself, sorry.
With JMenu and JMenuItem there are in fact no problems.
What I wish it is to be able to for a given Jmenu (which has his own border - ok), all the associated JMenuitem are surrounded with one global border.
if i set the border for each JMenuitem, I do not obtain the expected result.
FMA. -
I want to draw rounded rectangle with dashed border
Hello,
I am working on flex 4.5 air 2.7 . And i want to draw rounded rectangle which has dashed border or solid border as per user's selection. Also rectangle can be rounded or simple. I am able to draw simple rectangle with dashed border. I want a solution for rounded rectangle.
If anyone have any idea then post as soon as possible..
Thanks
DhwaniGood day!
Could you please post a screenshot with the Layers Panel visible?
Is the iten by any chance a Shape Layer and therefore does have a Vector Mask?
Regards,
Pfaffenbichler -
Dashed border around any component
Sorry if this a stupid question since I am very new to Flex.
But, I cannot set the dashed or dotted border around mx:Canvas (or
any other component for that matter). borderStyle allows only four
settings: solid, inset, outset and none.
Is there any easy way to achieve this?
Thank youHere is an app using this class I posted to my web site,
ChikaraDev.com. You can right
click and select View Source.
DashBorderExample -
Instead of dashed circle I got full circle.
top div:
border: 2px dashed #990000; border-radius: 50%;
bottom div:
border: 2px dashed #990000; border-radius: 25%;
Image 1 - Firefox
Image 2 - ChromeAnother example of a random line appearin approx. middle of window.
Full artifact
Fading out... on window resize. then disappears.
The grey block is just a simple div, with a drop shadow.
(href removed) -
How to add custom file icons on SharePoint 2010 document library?
Hi there,
In a document library SharePoint shows the PDF and Word etc icons all fine - however we have a custom file format with a custom icon. Is this possible to add this custom icon for our custom extension? How?
Thank you so much.Hi,
You could accomplish your requirement by using jQuery with these steps, and this code is using jQuery to modify it on the current page, if you would like to make it work on all library, you need to choose the former method or add this JQuery script on all
library pages manually:
Upload a custom icon to file “14\ Template\Images” or your SharePoint document library.
Add this code below in the document library that you want to extend your custom icon, you could add code by following these: Click edit page in the document library -> add a web part -> choose Content Editor -> click edit source in the Ribbon ->
add the source below -> click OK.
<script src="https://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script><script type="text/javascript">
$(document).ready(function(){
var fileObject = $("[title$='docx']");
for(var i=0; i < fileObject.length; i++){
//fileObject[i].outerHTML="<img width=\"16\" height=\"16\" title=\"test.docx\" alt=\"test.docx\" src=\"/_layouts/15/images/custom.png\" border=\"0\">"; // upload your custom icon to file ” 14\ Template\Images”, replace your src URL
fileObject[i].outerHTML="<img width=\"16\" height=\"16\" title=\"test.docx\" alt=\"test.docx\" src=\"/sites/sharepoint2013/Shared%20Documents/custom.png\" border=\"0\">"; // upload your custom icon to SharePoint document library, replace your src URL
</script>
The screenshot below is my result:
Best Regards
Vincent Han
TechNet Community Support -
Smartforms - Is it possible to Customize Cell Border In Template in 4.6C
Hi,
In smartforms, i know that Customizing Cell border is possible with node type TEMPLATE in version 6.20
Our system is 4.6C
But there are many differences between 4.6C and 6.20 about SMARTFORMS.
Is there a way to specify custom cell border without "Select Pattern" option with node type TEMPLATE in 4.6C
thanks
ibrahimHi,
As you identify there are some large differences between Smartforms in 4.6c and 6.20. So there is no equivalent of the cell-specific borders in 4.6c
Regards,
Nick -
Mac :: Firefox :: CSS border issue
Can someone with Firefox on a Mac check this page and see if
you can tell
why in the "products" boxes ( there are 3 ) .. the bottom
border is missing
on only 2 of them. I believe the 3rd box down renders the
border. If I
delete a paragraph from the 1st box, the border shows on the
1st box and not
the other two .. weird.
http://65.115.104.39/html%5Fnewsletters/stevens/urban/
The css is fairly complex for the entire page but the
relevant code for this
product box looks like this.....
#pContent .adblock {
border: 1px dashed #777;
margin: 1em 10px;
background: #fff;
}There is more going on there but the .adblock style is this
container with
the dashed border. Seems to work fine in Safari, and IE and
FF on PC.
Regards,
..Trent Pastrana
www.fourlevel.comoops, had an extra border in there.
#outerwrap #wrap #pContent hr {
position: relative;
height:0;
border-top:1px solid #777;
Regards,
..Trent Pastrana
www.fourlevel.com
"T.Pastrana - 4Level" <[email protected]> wrote in message
news:e99fee$7lu$[email protected]..
> No, it's actually not the hr causing the missing border.
It was doing
> that before the hr was there. The hr was causing the
redraw problem
> though. Firefox also doesn't render height on hrs very
well. The way
> around both of these problems was to set the height of
the hr to 0px and
> give it a top border.
>
>
> #outerwrap #wrap #pContent hr {
> position: relative;
> height:0;
> border:0;
> border-top:1px solid #777;
> }
>
>
> --
> Regards,
> ..Trent Pastrana
> www.fourlevel.com
>
>
>
>
>
> "Osgood" <[email protected]> wrote in
message
> news:e98c42$oog$[email protected]..
>> Osgood wrote:
>>
>>> T.Pastrana - 4Level wrote:
>>>
>>>> Really? ok thanks for checking...
>>>>
>>>>
>>> Yeah...but now I check in the latest version of
Firefox they don't
>>> appear. Have you got any empty clearing
<divs> in the code.
>>>
>>> If so put a in and see it that helps.
I seem to remember that the
>>> latest version of Firefox reacts differently to
empty <div></div> on
>>> Mac.
>>
>> This is what is causing those bottom dashed lines to
not appear in Mac
>> Firefox.
>>
>> <hr width="90%" size="1">
>>
>
> -
Border styles not applied to buttons; buttons rendered incorrectly
Hi,
I'm fiddling about with the border styles in Designer. Though I can change the border style and color of a button, set its background-color and even apply round corners, none of them are rendered in the resulting pdf-file.
This is how a fancy button, I designed for testing purposes, looks like in the 'body pages' tab:
When I switch to the 'pdf preview' tab, the button looks like this:
Neither were custom individual border colors rendered nor round corners. Background fill styles weren't rendered as well.
The xml of the button:
<field anchorType="bottomLeft" h="17.8202mm" name="instructions" w="46.9198mm" x="1.886972in" y="3.863361in">
<ui>
<button/>
</ui>
<font typeface="Myriad Pro"/>
<caption>
<value>
<text>Instructions</text>
</value>
<para hAlign="center" vAlign="middle" spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" marginLeft="0pt" marginRight="0pt"/>
<font typeface="Myriad Pro" size="12pt" baselineShift="0pt"/>
</caption>
<border hand="right">
<edge thickness="1mm">
<color value="192,192,192"/>
</edge>
<fill>
<color value="255,229,128"/>
</fill>
<corner join="round" radius="3mm" thickness="1mm">
<color value="192,192,192"/>
</corner>
<edge thickness="1mm">
<color value="0,0,255"/>
</edge>
<edge thickness="1mm">
<color value="0,0,255"/>
</edge>
<edge thickness="1mm">
<color value="192,192,192"/>
</edge>
<corner join="round" radius="3mm" thickness="1mm">
<color value="0,0,255"/>
</corner>
<corner join="round" radius="3mm" thickness="1mm">
<color value="0,0,255"/>
</corner>
<corner join="round" radius="3mm" thickness="1mm">
<color value="192,192,192"/>
</corner>
</border>
<bind match="none"/>
</field>
Is it a bug or are the styles of buttons not allowed to be customized by design?
I'm using Designer 7.1 and Acrobat 7.0.5.
Regards,
SteveI tried buttons with bevel/emboss and it work (indesign cs6 8.0.2). Yes there is a known issue
related to effects applied to buttons will not appear in the exported file.
https://dl.dropboxusercontent.com/u/72277778/buttons%20bevel.pdf -
Table cell with invisible border?
Hi,
I am trying to get table-cells with e.g. the right
border missing (invisible). I am using the
following XSL-FO to get this:
<fo:table-cell border="solid black 1px" border-right-width="0px" border-collapse="collapse" number-columns-spanned="1">
This works fine with four different
XSL-FO engines, but XMLP shows
the right border. Is there a work around
or different approach to get invisible
borders?
Thank you,
HeinzHi Tim,
I am using an RTF template, but was not able to get
what I need with the standard functionality available
in the RTF template. To work around this, I have
imported a stylesheet to create the FO for the table
directly. I try to append to this mail:
- code in the RTF template
- XML sample data
- stylesheet imported from RTF template
- the generated FO (small table, 4 colums, 7 rows, plus headers)
I could also provide a stylesheet to create a complete,
self containing FO and a correct PDF output, but may
direct mail would be better for this.
Thank you,
Heinz
TemplateBuilder.RTF:
<?start:body?>
<?import: file:///F:/OracleForum/create_a_table.xsl?>
<?for-each:/Sample_Data/Measured_Values?>
<?call@inlines: parameterGroupIndividual?><?end call?>
<?end for-each?>
<?end body?>
XML Data:
<?xml version="1.0" encoding="UTF-8"?>
<Sample_Data>
<Measured_Values>
<Param_Group>GENERAL PARAMGROUP<Parameter Unit="umol/l">BILIU<Item Measured="6.8">1</Item>
<Item Measured="8.2">2</Item>
<Item Measured="-">3<Value_Note>
<number>*</number>
<text>A sample footnote</text>
</Value_Note>
</Item>
<Item Measured="62.1">4</Item>
<Item Measured="215.9">5</Item>
<Item Measured="12.7">6<Item_Note>
<number>a</number>
<text>An Item footnote</text>
</Item_Note>
</Item>
<Item Measured="3.6">7</Item>
</Parameter>
<Parameter Unit="per ul">ERYU<Item Measured="7.210">1</Item>
<Item Measured="45.000">2<Value_Note>
<number>**</number>
<text>Another sample footnote</text>
</Value_Note>
</Item>
<Item Measured="-">3</Item>
<Item Measured="1234.000">4</Item>
<Item Measured="326.580">5</Item>
<Item Measured="3.658">6</Item>
<Item Measured="123.540">7</Item>
</Parameter>
<Parameter Unit="per ul">LEUU<Item Measured="3.00">1</Item>
<Item Measured="3.00">2</Item>
<Item Measured="-">3</Item>
<Item Measured="354.39">4</Item>
<Item Measured="3254.24">5</Item>
<Item Measured="1256.32">6</Item>
<Item Measured="326.54">7</Item>
</Parameter>
</Param_Group>
<Param_Group>CRYSTALS<Parameter Unit="umol/l">GLUHI<Item Measured="22.00">1</Item>
<Item Measured="5.12">2</Item>
<Item Measured="-">3</Item>
<Item Measured="23.14">4<Value_Note>
<number>***</number>
<text>A last footnote</text>
</Value_Note>
</Item>
<Item Measured="576.26">5</Item>
<Item Measured="3621.00">6</Item>
<Item Measured="0.37">7</Item>
</Parameter>
</Param_Group>
</Measured_Values>
</Sample_Data>
create_a_table.xsl:
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">
<xsl:output method="xml" version="1.0" indent="no" encoding="ISO-8859-1"/>
<!-- -->
<xsl:template name="parameterGroupIndividual">
<xsl:call-template name="doParameterGroupTables">
<xsl:with-param name="currentNodeSet" select="*"/>
<xsl:with-param name="currentNodeChilds" select="*[1]/Parameter"/>
</xsl:call-template>
</xsl:template>
<!-- -->
<xsl:template name="doParameterGroupTables">
<xsl:param name="currentNodeSet"/>
<xsl:param name="currentNodeChilds"/>
<fo:table border="solid black 1px" table-layout="fixed">
<!-- The "Item" column -->
<fo:table-column column-width="2.5cm"/>
<!-- Create required columns 80% space for values, 20% space for footnotes -->
<xsl:call-template name="defineColumnsForNode">
<xsl:with-param name="nodeSet" select="$currentNodeSet"/>
<xsl:with-param name="nodeSetChilds" select="$currentNodeChilds"/>
<xsl:with-param name="colWidth" select="2.4"/>
</xsl:call-template>
<fo:table-header>
<fo:table-row>
<fo:table-cell border="solid black 0px" border-collapse="collapse" number-columns-spanned="1">
<fo:block> </fo:block>
</fo:table-cell>
<xsl:call-template name="doParameterGroupHeaders">
<xsl:with-param name="nodeSet" select="$currentNodeSet"/>
</xsl:call-template>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">Item</fo:block>
</fo:table-cell>
<xsl:call-template name="defineSecondRowOfHeaders">
<xsl:with-param name="nodeSet" select="$currentNodeSet"/>
<xsl:with-param name="nodeSetChilds" select="$currentNodeChilds"/>
</xsl:call-template>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<xsl:for-each-group select="*/Parameter/Item" group-by="normalize-space(text())">
<fo:table-row>
<fo:table-cell border="solid black 2px" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="center">
<xsl:value-of select="./text()"/>
</fo:block>
</fo:table-cell>
<xsl:for-each select="current-group()">
<fo:table-cell border="solid black 2px" border-left-width="1px" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">
<xsl:value-of select="./@Measured"/>
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 2px" border-right-width="1px" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left">
<xsl:value-of select="./Value_Note/number/text()"/>
</fo:block>
</fo:table-cell>
</xsl:for-each>
</fo:table-row>
</xsl:for-each-group>
</fo:table-body>
</fo:table>
</xsl:template>
<!-- -->
<xsl:template name="doParameterGroupHeaders">
<xsl:param name="nodeSet"/>
<xsl:if test="$nodeSet[1]">
<fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="{count($nodeSet[1]/Parameter)*2}">
<fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">
<xsl:value-of select="$nodeSet[1]/text()"/>
</fo:block>
</fo:table-cell>
<xsl:call-template name="doParameterGroupHeaders">
<xsl:with-param name="nodeSet" select="$nodeSet[1]/following-sibling::*"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<!-- -->
<xsl:template name="defineSecondRowOfHeaders">
<xsl:param name="nodeSet"/>
<xsl:param name="nodeSetChilds"/>
<xsl:choose>
<xsl:when test="$nodeSetChilds[1]">
<fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="2">
<fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">
<xsl:value-of select="$nodeSetChilds[1]/text()"/>
</fo:block>
<fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">
<xsl:value-of select="$nodeSetChilds[1]/@Unit"/>
</fo:block>
</fo:table-cell>
<xsl:call-template name="defineSecondRowOfHeaders">
<xsl:with-param name="nodeSet" select="$nodeSet"/>
<xsl:with-param name="nodeSetChilds" select="$nodeSetChilds[1]/following-sibling::*"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$nodeSet[1]/following-sibling::*">
<xsl:call-template name="defineSecondRowOfHeaders">
<xsl:with-param name="nodeSet" select="$nodeSet[1]/following-sibling::*"/>
<xsl:with-param name="nodeSetChilds" select="$nodeSet[1]/following-sibling::*[1]/Parameter"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- -->
<xsl:template name="setValuesPGroupChilds">
<xsl:param name="nodeSet"/>
<xsl:param name="nodeSetChilds"/>
<xsl:param name="ItemNumber"/>
<xsl:choose>
<xsl:when test="$nodeSetChilds[1]/Item[text()=$ItemNumber]">
<fo:table-cell border="solid black 1px" border-right-width="0px" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">
<xsl:value-of select="$nodeSetChilds[1]/Item[text()=$ItemNumber]/@Measured"/>
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-left-width="0px" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left">
<xsl:value-of select="$nodeSetChilds[1]/Item[text()=$ItemNumber]/Value_Note/number/text()"/>
</fo:block>
</fo:table-cell>
<xsl:call-template name="setValuesPGroupChilds">
<xsl:with-param name="nodeSet" select="$nodeSet"/>
<xsl:with-param name="nodeSetChilds" select="$nodeSetChilds[1]/following-sibling::*"/>
<xsl:with-param name="ItemNumber" select="$ItemNumber"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$nodeSet[1]/following-sibling::*">
<xsl:call-template name="setValuesPGroupChilds">
<xsl:with-param name="nodeSet" select="$nodeSet[1]/following-sibling::*"/>
<xsl:with-param name="nodeSetChilds" select="$nodeSet[1]/following-sibling::*[1]/Parameter"/>
<xsl:with-param name="ItemNumber" select="$ItemNumber"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- -->
<xsl:template name="defineColumnsForNode">
<xsl:param name="nodeSet"/>
<xsl:param name="nodeSetChilds"/>
<xsl:param name="colWidth"/>
<xsl:choose>
<xsl:when test="$nodeSetChilds[1]">
<fo:table-column column-width="{$colWidth*0.8}cm"/>
<fo:table-column column-width="{$colWidth*0.2}cm"/>
<xsl:call-template name="defineColumnsForNode">
<xsl:with-param name="nodeSet" select="$nodeSet"/>
<xsl:with-param name="nodeSetChilds" select="$nodeSetChilds[1]/following-sibling::*"/>
<xsl:with-param name="colWidth" select="$colWidth"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$nodeSet[1]/following-sibling::*">
<xsl:call-template name="defineColumnsForNode">
<xsl:with-param name="nodeSet" select="$nodeSet[1]/following-sibling::*"/>
<xsl:with-param name="nodeSetChilds" select="$nodeSet[1]/following-sibling::*[1]/Parameter"/>
<xsl:with-param name="colWidth" select="$colWidth"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- -->
<!-- create $noOfCols empty table-cells -->
<!-- -->
<xsl:template name="fillColumns">
<xsl:param name="noOfCols"/>
<xsl:if test="$noOfCols > 0">
<fo:table-cell border-right-style="dashed" border-left-style="dashed" border-width="1px">
<fo:block/>
</fo:table-cell>
<xsl:variable name="rest" select="$noOfCols - 1"/>
<xsl:call-template name="fillColumns">
<xsl:with-param name="noOfCols" select="$rest"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
<fo:table border="solid black 1px" table-layout="fixed">
<fo:table-column column-width="2.5cm"/>
<fo:table-column column-width="1.92cm"/>
<fo:table-column column-width="0.48cm"/>
<fo:table-column column-width="1.92cm"/>
<fo:table-column column-width="0.48cm"/>
<fo:table-column column-width="1.92cm"/>
<fo:table-column column-width="0.48cm"/>
<fo:table-column column-width="1.92cm"/>
<fo:table-column column-width="0.48cm"/>
<fo:table-header>
<fo:table-row>
<fo:table-cell border="solid black 0px" border-collapse="collapse" number-columns-spanned="1">
<fo:block> </fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="6">
<fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">GENERAL PARAMGROUP</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="2">
<fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">CRYSTALS</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">Item</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="2">
<fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">BILIU</fo:block>
<fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">umol/l</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="2">
<fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">ERYU</fo:block>
<fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">per ul</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="2">
<fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">LEUU</fo:block>
<fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">per ul</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="2">
<fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">GLUHI</fo:block>
<fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">umol/l</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="center">1</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">6.8</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">7.210</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">3.00</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">22.00</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="center">2</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">8.2</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">45.000</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left">**</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">3.00</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">5.12</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="center">3</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">-</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left">*</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">-</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">-</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">-</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="center">4</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">62.1</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">1234.000</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">354.39</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">23.14</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left">***</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="center">5</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">215.9</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">326.580</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">3254.24</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">576.26</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="center">6</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">12.7</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">3.658</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">1256.32</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">3621.00</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="center">7</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">3.6</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">123.540</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">326.54</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="right">0.37</fo:block>
</fo:table-cell>
<fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
<fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table> -
Hi folks,
I'm trying to increase the length of the individual dash
strokes (i.e. shorten the gaps between the dashes). Does anyone
know how to do this; alternatively, is there a way I can make a
custom dashed line?
cheers
Rich> I'm trying to increase the length of the individual dash
strokes (i.e. shorten
> the gaps between the dashes). Does anyone know how to do
this; alternatively,
> is there a way I can make a custom dashed line?
To create a new dashed stroke style:
1. In the Object panel, hold down Alt (Windows) or Option
(Macintosh) as you select a dash from the dash style pop-up menu.
2. To set dash sizes, enter values in any of the On text
boxes in the Dash Editor. To set the space sizes between dashes,
enter values in any of the Off text boxes.
3. Click OK to add a new dash to the dash style pop-up menu
and apply the new dash to any selected paths.
Note: The dash style pop-up menu can display up to 255 dashed
strokes. You cannot remove styles from the menu.
Reading the manual or Help File is sometimes a good idea. The
text above is copied from the latter.
Jukka -
I know this is going to turn out to be obvious, but....
http://www.fourcreeks.org/may-creek-basin/watersheds.htm
The main image is included in an <a href> to make it a
hyperlink. Before I added the link there was no border around the
image; now there is.
I've tried to set the style for the <a> to border:0;
text-decoration:none; background:transparent but nothing seems to
remove the border that was added when the link was created.
What do I need to do to get rid of the border around the
linked image?
Thanks
TomOn 27 Sep 2006 in macromedia.dreamweaver, TCarp wrote:
> I need to bring this topic back up. Using the img border
0 worked
> for the initial border around the image, but now I'm
noticing that I
> get a dashed border around the image when the link has
been visited.
> I experimented with a:visited img, a img:visited and a
few other
> combinations but nothing worked.
>
> How do I totally eliminate any borders around images
used as links
> in any state (hover, visited, etc.)?
That's an accessibility feature, so that those using adaptive
devices can
see where they are on the page. You can eliminate it - do a
web search
for 'link scrubber' - but it makes your pages less
accessible.
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/email.php -
Missing photo has dotted line border
missing photo has dotted line border
What is it, that you see or don't see? Empty rectangles surrounded by a dashed border like marching ants? In the browser or the viewer?
If you do not see the images in the browser, then you have a problem with your thumbnails, not your previews. Try to select all of the empty rectangles and select (from the main menu bar)
Photos > Generate Thumbnails.
If you want to recreate your Previews, in case they do not show properly in the Browser, hold down the options-key while you select "Update Previews".
Regards
Léonie
Maybe you are looking for
-
In lightroom, is there a way to create a preset where a brush is automatically run?
In lightroom, is there a way to create a preset where a brush is automatically run? Example: If I make multiple different brush adjustments on an image, and I want the exact same edit on another image, can I create a preset for that?
-
How to configure boe.properties file in ACTool for SAP BO Distributed environment
Hi , I am trying to configure the ACTool for SAP BO distributed environment (dedicated BOE Server, Tomcat and Explorer) servers. I have installed SMD Agent, Host Agent and ACTool without any issues in the BOE server(CMS), but I am unable to run the A
-
Lumia 520 SMS disappeared!!!!
i bought nokia lumia 520 for about 1 month. the text messages disappear automatically!!! right now, the only text message is the acknowledgement message from the mobile operator saying i've delivered the message. that's the only message that can exis
-
I have an ancient 12" iBook which I would like to put to use running Power PC software but could do with bigger screen. The iBook has a ATI Mobility Radeon 9200 with 32MB of DDR SDRAM and Video mirroring supports VGA video out to an external display
-
IPod Touch, Music, Video, and Photo icons on iPhone
Is there a way to show Music, Video, and Photo as their own icons instead of having one iPod icon?