Enhanced Printing

From CometWiki

(Difference between revisions)
Jump to: navigation, search
Line 12: Line 12:
| Steve, I took out the href stuff for this product and round rectangle, just to see how it went. Would this be enough room for commenys or do you want to comment in the link which is a bit messy at the moment. The link is to a heading within a page and I can't remember how to not show the complicated link info and all my notes on this stuff are at home and I am not.
| Steve, I took out the href stuff for this product and round rectangle, just to see how it went. Would this be enough room for commenys or do you want to comment in the link which is a bit messy at the moment. The link is to a heading within a page and I can't remember how to not show the complicated link info and all my notes on this stuff are at home and I am not.
|-  
|-  
-
|  valign=top | <a href="getbkmode.htm">(GetBkMode)</a>
+
|  valign=top | (GetBkMode)</a>
| Returns the current background mode
| Returns the current background mode
|-  
|-  
-
|  valign=top | <a href="getfontinfo.htm">(GetFontInfo = item-code)</a>
+
|  valign=top | (GetFontInfo = item-code)</a>
| Returns font information
| Returns font information
|-  
|-  
-
|  valign=top | <a href="getfuncresult.htm">(GetFuncResult)</a>
+
|  valign=top | (GetFuncResult)</a>
| Requests the 4-byte result of the last printer function
| Requests the 4-byte result of the last printer function
|-  
|-  
-
|  valign=top | <a href="gettextalign.htm">(GetTextAlign)</a>
+
|  valign=top | >(GetTextAlign)</a>
| Returns the current text alignment mode
| Returns the current text alignment mode
|-  
|-  
-
|  valign=top | <a href="gettextcolor.htm">(GetTextColor)</a>
+
|  valign=top | (GetTextColor)</a>
| Returns the current text color
| Returns the current text color
|-  
|-  
-
|  valign=top | <a href="gettextextent.htm">(GetTextExtent); printable-text</a>
+
|  valign=top | (GetTextExtent); printable-text</a>
| Measures the size (width and height) of the specified text
| Measures the size (width and height) of the specified text
|-  
|-  
-
|  valign=top | <a href="popfont.htm">(Pop Font)</a>
+
|  valign=top |(Pop Font)</a>
|  
|  
|-  
|-  
-
|  valign=top | <a href="pushfont.htm">(Push Font)</a>
+
|  valign=top | (Push Font)</a>
|  
|  
|-  
|-  
-
|  valign=top | <a href="rectangle.htm">(Rectangle=left, top, right, bottom)</a>
+
|  valign=top | (Rectangle=left, top, right, bottom)</a>
| Draws a rectangle
| Draws a rectangle
|-  
|-  
Line 43: Line 43:
| Howvere you should be able to see what I am trying, we could probably have this discussion in the duiscussion page rather than here in the body of the manual.
| Howvere you should be able to see what I am trying, we could probably have this discussion in the duiscussion page rather than here in the body of the manual.
|-  
|-  
-
|  valign=top | <a href="selectfont.htm">(SelectFont); log-font-data</a>
+
|  valign=top | >(SelectFont); log-font-data</a>
| Selects the specified font
| Selects the specified font
|-  
|-  
-
|  valign=top | <a href="selectsysfont.htm">(SelectSysFont=font-number)</a>
+
|  valign=top | >(SelectSysFont=font-number)</a>
| Selects the specified SYSTEM font
| Selects the specified SYSTEM font
|-  
|-  
-
|  valign=top | <a href="setbkcolor.htm">(SetBkColor=red, green, blue)</a>
+
|  valign=top | (SetBkColor=red, green, blue)</a>
| Sets the current background color
| Sets the current background color
|-  
|-  
-
|  valign=top | <a href="setbkmode.htm">(SetBkMode=mode)</a>
+
|  valign=top | >(SetBkMode=mode)</a>
| Sets the background mode
| Sets the background mode
|-  
|-  
-
|  valign=top | <a href="settextalign.htm">(SetTextAlign=flags)</a>
+
|  valign=top | >(SetTextAlign=flags)</a>
| Sets the text alignment mode
| Sets the text alignment mode
|-  
|-  
-
|  valign=top | <a href="settextcolor.htm">(SetTextColor=red, green, blue)</a>
+
|  valign=top |(SetTextColor=red, green, blue)</a>
| Sets the current text color
| Sets the current text color
|-  
|-  
-
|  valign=top | <a href="textout.htm">(TextOut = X, Y); printable-text</a>
+
|  valign=top | >(TextOut = X, Y); printable-text</a>
| Prints the specified text at the specified location
| Prints the specified text at the specified location
|}<p><h3>
|}<p><h3>
Line 70: Line 70:
! Description
! Description
|-  
|-  
-
|  valign=top | <a href="drawbitmap.htm">(Draw Bit Map=left, top, right, bottom, scaleX, scaleY, flags); filename</a>
+
|  valign=top |(Draw Bit Map=left, top, right, bottom, scaleX, scaleY, flags); filename</a>
| Draws a bitmap graphic contained in the specified filename (.BMP/.JPG) at the specified
| Draws a bitmap graphic contained in the specified filename (.BMP/.JPG) at the specified
location, using the specified format codes and scaling factors
location, using the specified format codes and scaling factors
|-  
|-  
-
|  valign=top | <a href="drawimage.htm">(Draw Image=left, top, right, bottom, scaleX, scaleY, flags, filename)</a>
+
|  valign=top | (Draw Image=left, top, right, bottom, scaleX, scaleY, flags, filename)</a>
| Draws a bitmap graphic contained in the specified filename (.BMP/.JPG) at the specified
| Draws a bitmap graphic contained in the specified filename (.BMP/.JPG) at the specified
location, using the specified format codes and scaling factors
location, using the specified format codes and scaling factors
|-  
|-  
-
|  valign=top | <a href="drawtext.htm">(Draw Text=left, top, right, bottom, flags); printable-text</a>
+
|  valign=top | >(Draw Text=left, top, right, bottom, flags); printable-text</a>
| Prints the specified text into the rectangle at the specified location,
| Prints the specified text into the rectangle at the specified location,
using the specified format codes
using the specified format codes
|-  
|-  
-
|  valign=top | <a href="ellipse.htm">(Ellipse=left, top, right, bottom)</a>
+
|  valign=top |(Ellipse=left, top, right, bottom)</a>
| Draws an ellipse
| Draws an ellipse
|-  
|-  
-
|  valign=top | <a href="lineto.htm">(Line To = X, Y)</a>
+
|  valign=top | (Line To = X, Y)</a>
| Draws a line using the currently selected pen from the current
| Draws a line using the currently selected pen from the current
location pointer to the location specified
location pointer to the location specified
|-  
|-  
-
|  valign=top | <a href="moveto.htm">(Move To = X, Y)</a>
+
|  valign=top |(Move To = X, Y)</a>
| Moves the current location pointer to the specified location
| Moves the current location pointer to the specified location
|-  
|-  
-
|  valign=top | <a href="selecthatchbrush.htm">(SelectHatchBrush=style, red, green, blue)</a>
+
|  valign=top | (SelectHatchBrush=style, red, green, blue)</a>
| Selects the hatched brush
| Selects the hatched brush
|-  
|-  
-
|  valign=top | <a href="selectpen.htm">(SelectPen=style, width, red, green, blue)</a>
+
|  valign=top | (SelectPen=style, width, red, green, blue)</a>
| Selects the specified pen
| Selects the specified pen
|-  
|-  
-
|  valign=top | <a href="selectsolidbrush.htm">(SelectSolidBrush=red, green, blue)</a>
+
|  valign=top |(SelectSolidBrush=red, green, blue)</a>
| Selects the solid brush
| Selects the solid brush
|}<p><h3>
|}<p><h3>
Line 107: Line 107:
! Description
! Description
|-  
|-  
-
|  valign=top | <a href="getpageinfo.htm">(GetPageInfo = item-code)</a>
+
|  valign=top | (GetPageInfo = item-code)</a>
| Returns page information
| Returns page information
|-  
|-  
-
|  valign=top | <a href="setorientation.htm">(SetOrientation=mode)</a>
+
|  valign=top | (SetOrientation=mode)</a>
| Sets the paper orientation
| Sets the paper orientation
|-  
|-  
-
|  valign=top | <a href="setpapersize.htm">(SetPaperSize)</a>
+
|  valign=top | (SetPaperSize)</a>
| Sets the paper size
| Sets the paper size
|-  
|-  
-
|  valign=top | <a href="setprinterinfo.htm">(SetPrinterInfo)</a>
+
|  valign=top | (SetPrinterInfo)</a>
| Sets printer information
| Sets printer information
|-  
|-  
-
|  valign=top | <a href="linespacing.htm">(LineSpacing=LinesPerInch)</a>
+
|  valign=top | (LineSpacing=LinesPerInch)</a>
| Overrides the default font-based line spacing to the desired lines-per-inch
| Overrides the default font-based line spacing to the desired lines-per-inch
|-  
|-  
-
|  valign=top | <a href="autocron.htm">(AutoCrOn)</a>
+
|  valign=top | (AutoCrOn)</a>
| Turns on extra CR/LF added by CosP to the end of each line not followed by (TR).
| Turns on extra CR/LF added by CosP to the end of each line not followed by (TR).
|-  
|-  
-
|  valign=top | <a href="autocroff.htm">(AutoCrOff)</a>
+
|  valign=top | >(AutoCrOff)</a>
| Turns off extra CR/LF added by CosP to the end of each line not followed by (TR).
| Turns off extra CR/LF added by CosP to the end of each line not followed by (TR).
|}</body></html>
|}</body></html>

Revision as of 06:26, 15 January 2010

Windows Printer Mnemonics

Text and font functions

Mnemonic Description Steve's Comments
(GetBkColor) ! Mnemonics_"G"#.28GetBkColor.29 Returns the current background color Steve, I took out the href stuff for this product and round rectangle, just to see how it went. Would this be enough room for commenys or do you want to comment in the link which is a bit messy at the moment. The link is to a heading within a page and I can't remember how to not show the complicated link info and all my notes on this stuff are at home and I am not.
(GetBkMode)</a> Returns the current background mode
(GetFontInfo = item-code)</a> Returns font information
(GetFuncResult)</a> Requests the 4-byte result of the last printer function
>(GetTextAlign)</a> Returns the current text alignment mode
(GetTextColor)</a> Returns the current text color
(GetTextExtent); printable-text</a> Measures the size (width and height) of the specified text
(Pop Font)</a>
(Push Font)</a>
(Rectangle=left, top, right, bottom)</a> Draws a rectangle
(RoundRect=left, top, right, bottom, corner-width, corner-height)< Draws a rectangle with rounded corners Howvere you should be able to see what I am trying, we could probably have this discussion in the duiscussion page rather than here in the body of the manual.
>(SelectFont); log-font-data</a> Selects the specified font
>(SelectSysFont=font-number)</a> Selects the specified SYSTEM font
(SetBkColor=red, green, blue)</a> Sets the current background color
>(SetBkMode=mode)</a> Sets the background mode
>(SetTextAlign=flags)</a> Sets the text alignment mode
(SetTextColor=red, green, blue)</a> Sets the current text color
>(TextOut = X, Y); printable-text</a> Prints the specified text at the specified location

Graphics and drawing functions

Mnemonic Description
(Draw Bit Map=left, top, right, bottom, scaleX, scaleY, flags); filename</a> Draws a bitmap graphic contained in the specified filename (.BMP/.JPG) at the specified

location, using the specified format codes and scaling factors

(Draw Image=left, top, right, bottom, scaleX, scaleY, flags, filename)</a> Draws a bitmap graphic contained in the specified filename (.BMP/.JPG) at the specified

location, using the specified format codes and scaling factors

>(Draw Text=left, top, right, bottom, flags); printable-text</a> Prints the specified text into the rectangle at the specified location,

using the specified format codes

(Ellipse=left, top, right, bottom)</a> Draws an ellipse
(Line To = X, Y)</a> Draws a line using the currently selected pen from the current

location pointer to the location specified

(Move To = X, Y)</a> Moves the current location pointer to the specified location
(SelectHatchBrush=style, red, green, blue)</a> Selects the hatched brush
(SelectPen=style, width, red, green, blue)</a> Selects the specified pen
(SelectSolidBrush=red, green, blue)</a> Selects the solid brush

Printer control functions

Mnemonic Description
(GetPageInfo = item-code)</a> Returns page information
(SetOrientation=mode)</a> Sets the paper orientation
(SetPaperSize)</a> Sets the paper size
(SetPrinterInfo)</a> Sets printer information
(LineSpacing=LinesPerInch)</a> Overrides the default font-based line spacing to the desired lines-per-inch
(AutoCrOn)</a> Turns on extra CR/LF added by CosP to the end of each line not followed by (TR).
>(AutoCrOff)</a> Turns off extra CR/LF added by CosP to the end of each line not followed by (TR).
</body></html>
Personal tools