|
Drawing System Help
The drawing system can draw things on a window using the check handle assigned to it.
The changes you made are affected after the window is (re)drawed.
This normally happens when a part of the window was not visible on the screen and has been made visible again.
You can call API_Window_Redraw to redraw a window manually.
Real API_DS_MoveItem (Real Item ID, Real X, Real Y, Real X2, Real Y2, Real X3, Real Y3, Real X4, Real Y4);
This function moves an item to specified positions and dimensions. (Some items do not require all arguments)
Return value:
Always returns 1.
Real API_DS_DeleteItem (Real Item handle);
This function deletes an item from the drawing system.
Return value:
Always returns 1.
Real API_DS_AddGraphicBuffer (Real Check Handle, Real Graphic Buffer, Real X, Real Y, Real Width, Real Height);
This function adds a graphic buffer to the drawing system.
Return value:
Always returns 1.
Real API_DS_AddRectangle (Real Check Handle, Real X, Real Y, Real X2, Real Y2);
This function adds a rectangle to the drawing system.
Return value:
Always returns 1.
Real API_DS_AddLine (Real Check Handle, Real X, Real Y, Real X2, Real Y2);
This function adds a line to the drawing system.
Return value:
Always returns 1.
Real API_DS_AddEllipse (Real Check Handle, Real X, Real Y, Real X2, Real Y2);
This function adds an ellipse to the drawing system.
Return value:
Always returns 1.
Real API_DS_AddRoundRect (Real Check Handle, Real X, Real Y, Real X2, Real Y2, Real Ellipse width, Real Ellipse height);
This function adds a rounded rectangle to the drawing system.
Return value:
Always returns 1.
Real API_DS_AddText (Real Check Handle, String Text, Real X, Real Y);
This function adds text to the drawing system.
Return value:
Always returns 1.
Real API_DS_AddBitmap (Real Check Handle, String Text, Real X, Real Y);
This function adds text to the drawing system.
Return value:
Always returns 1.
Real API_DS_AddPie (Real Check Handle, String Text, Real X, Real Y, Real X2, Real Y2, Real X3, Real Y3, Real X4, Real Y4);
This function adds a pie shape to the drawing system.
Return value:
Always returns 1.
Real API_DS_AddChord (Real Check Handle, String Text, Real X, Real Y, Real X2, Real Y2, Real X3, Real Y3, Real X4, Real Y4);
This function adds a chord shape to the drawing system.
Return value:
Always returns 1.
Real API_DS_AddArc (Real Check Handle, String Text, Real X, Real Y, Real X2, Real Y2, Real X3, Real Y3, Real X4, Real Y4);
This function adds an arc shape to the drawing system.
Return value:
Always returns 1.
Real API_DS_SetItemPen (Real Item Handle, Real Pen Resource Handle)
This function changes the pen of a drawing system item.
This affects rectangles, lines, ellipses, round rectangles, pies, chords and arcs.
Return value:
Always returns 1.
Real API_DS_SetItemBrush (Real Item Handle, Real Brush Resource Handle)
This function changes the brush of a drawing system item.
This affects rectangles, lines, ellipses, round rectangles, pies, chords and arcs.
Return value:
Always returns 1.
Real API_DS_SetItemFont (Real Item Handle, Real Font Resource Handle)
This function changes the font of a drawing system item.
Return value:
Always returns 1.
Real API_DS_SetItemColor (Real Item Handle, Real Font Resource Handle)
This function changes the font of a drawing system item.
Return value:
Always returns 1.
Example code:
GbGradient2 = API_GB_Create (105,105);
DcGradient2 = API_GB_GetDC (GbGradient2);
API_Draw_Gradient (DcGradient2,0,0,105,105,0,c_yellow,c_lime);
BrGradient2 = API_Draw_CreatePatternBrush (API_GB_GetBitmap (GbGradient2));
API_Draw_Gradient (DcGradient2,0,0,105,105,0,c_red,65535);
BrGradient3 = API_Draw_CreatePatternBrush (API_GB_GetBitmap (GbGradient2));
hRectangle = API_DS_AddRectangle (2,5,5,105,105);
hEllipse = API_DS_AddEllipse (2,5,5,105,105);
hNoPen = API_Draw_CreatePen (PS_NULL,0,0);
API_DS_SetItemBrush (hRectangle,BrGradient2);
API_DS_SetItemBrush (hEllipse,BrGradient3);
API_DS_SetItemPen (hRectangle,hNoPen);
API_DS_SetItemPen (hEllipse,hNoPen);
|
Return to help index
|
|
|
|