PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Lightness of black color
  • Various
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Prints a border at specified coordinates.
Note: The origin (0,0) is located in the top left corner of the sheet. It takes the physical margins of printer into account.
Windows Mobile Caution: The borders will be printed only if the printer supports this feature. See Characteristics of a print on Mobile Device (Pocket PC) for more details.
Versions 18 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 18
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 19 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
New in version 19
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
iPrint(iXPos(50) + CU.CUSTNAME)
// Encloses the text in a line equal to 2 Pica point
// The background of the border is gray at 50%
iBorder(0, 0, iPageWidth(), 10, 2, 50)
Syntax
iBorder(<X1> , <Y1> , <X2> , <Y2> [, <Thickness> [, <Fill> [, <Color> [, <Line> [, <Brush> [, <Border>]]]]]])
<X1>: Real
Horizontal coordinate of top left corner of border (in millimeters). This corner defines the external side of border.
Value included between 0 and the page width (returned by iPageWidth).
<Y1>: Real
Vertical coordinate of top left corner of border (in millimeters). This corner defines the external side of border.
Value included between 0 and the page height (returned by iPageHeight).
<X2>: Real
Horizontal coordinate of bottom right corner of border (in millimeters). This corner defines the external side of border.
Value included between 0 and the page width (returned by iPageWidth).
<Y2>: Real
Vertical coordinate of bottom right corner of border (in millimeters). This corner defines the external side of border.
Value included between 0 and the page height (returned by iPageHeight).
<Thickness>: Optional real
Thickness of border line (in picas). Default value = 1 (one Pica = 0.353 mm).

Caution: Depending on the value of this parameter, the thickness is achieved by adding several lines next to each others from the outside to the inside.

AndroidAndroid Widget Java This parameter must correspond to an integer value. Otherwise, the thickness will be rounded to the nearest integer value.
<Fill>: Optional integer (included between 1 and 200)
Rate for the line color and for the background color. If this parameter is:
  • Equal to 0 (default value): no fill.
  • Equal to 100: entirely filled with the specified color.
  • Less than 100: the closer this parameter is to 0, the more the color brightens.
  • Greater than 100: the closer this parameter is to 200, the more the color darkens.
<Color>: Optional integer
Color used for the background and for the line. If this parameter is not specified, the color used is black.
This color corresponds to:
<Line>: Optional integer constant
Type of line.
iContinuous
(Default value)
Solid line
iDotAndDashDot-and-dash line (-.-.)
iDottedDotted line (....)
iDashedDashed line (-----)
Windows Mobile This parameter is not available in this version. A WLanguage error will occur if this parameter is specified.
<Brush>: Optional integer constant
Pattern used to fill the border.
iCrossedCrossed brush
iDiagonalCrossedBrush crossed diagonally
iUpwardDiagonalUpward diagonal brush
iDownwardDiagonalDownward diagonal brush
iHorizontalHorizontal brush
iSolid
(default value)
Solid brush
iVerticalVertical brush
Windows Mobile This parameter is not available in this version. A WLanguage error will occur if this parameter is specified.
AndroidAndroid Widget Java This parameter is ignored.
<Border>: Optional integer constant
Sides of border to draw:
iBorderNoneThe border has no side
iBorderAll
(Default value)
All the border sides are drawn
iBorderRightThe right side is drawn
iBorderLeftThe left side is drawn
iBorderTopThe top side is drawn
iBorderBottomThe bottom side is drawn.
Windows Mobile This parameter is not available in this version. A WLanguage error will occur if this parameter is specified.
Remarks

Lightness of black color

For the black color, the rate corresponds to a rate of gray whose values are included between 1 (white) and 100 (solid black). In this case, the values greater than 100 will be processed like the value 100.

Various

  • The cursor position is not modified when the outline is drawn.
  • The dotted type (iDotted) or the mixed type (iDotAndDash) combined with a thick border may produce unpleasant effects.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230prn.dll
Windows Mobile wp230prn.dll
Java wd230java.jar
Linux wd230prn.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Exemplo iborder
IF CBOX_gerar_pdf=True THEN
iDestination(iPDF)
ELSE
iPreview(ipvZoom100)
END

iBorder(0,0,iPageWidth(),10,1,10)

//Lado Esquerdo
//Linha
//Altura
//Espessura
//Cor Fundo

iPrint("Empresa Matos informatica Ltda "+CR+"Relatorio Bancos"+CR)
iHLine(0, iPageWidth())
iPrint("")
iPrint(iXPos(1) + "Codigo" + iXPos(18) +"Nome")
FOR EACH bancos
iPrint(iXPos(1)+ NumToString(bancos.id_bancos,"06d") + iXPos(18) + bancos.nome)
END
iEndPrinting()
ShellExecute(iLastFile())

// Blog com Video e Exemplo

http://windevdesenvolvimento.blogspot.com.br/2016/11/aula-973-windev-relatorio-34-iborder.html

https://www.youtube.com/watch?v=T90px41APZc

De matos
Dec. 04 2016