Unibrain API-810 User Manual Page 74

  • Download
  • Add to my manuals
  • Print
  • Page
    / 97
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 73
74
Visual Basic 6.0 syntax
Frame.DrawLine 0, 0, 50, 50, 0
C++ syntax
HRESULT hr = pIFrame->DrawLine(0, 0, 50, 50, 0);
DrawString method
Prototype
DrawString(
IN String Text,
IN Integer X,
IN Integer Y,
IN IFontDisp Font,
IN Long Color
)
Comments
This method will draw a string of text on a point on the frame defined by a set of coordinates (X, Y), using the
color defined by a Long number (OLE_COLOR), and a valid IFontDisp object.
The coordinates given as the 2 parameters must reside in the frame boundaries, otherwise an error will
occur.
Visual Basic 6.0 syntax
Frame.DrawString "Hello World", 0, 0, Me.Font, 0
C++ syntax
HRESULT hr = pIFrame->DrawString(
_T("Hello World"),
0, 0,
pIFont,
0);
DrawRectangle method
Prototype
DrawRectangle(
IN Integer X,
IN Integer Y,
IN Integer Width,
IN Integer Height,
IN Long Color,
IN Boolean Filled
)
Comments
This method will draw a rectangle, with its top-left corner being at a point defined by a set of coordinates (X,
Y) having a specific Width and Height and using the color defined by a Long number (OLE_COLOR).
Additionally, it can be specified whether this rectangle will be empty (just its outline drawn) or filled.
Page view 73
1 2 ... 69 70 71 72 73 74 75 76 77 78 79 ... 96 97

Comments to this Manuals

No comments