This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
Select the canvas target (window, control) on which future drawing operations will take place
Syntax
n = Canvas_Attach(hWnd, CtrlID, [, Redraw])
Returns
Number
Parameters
Name |
Type |
Optional |
Meaning |
hWnd |
Number |
No |
Handle of the Canvas Window, Window, or Bitmap to be used by subsequent Canvas statements. |
CtrlID |
Number |
No |
The control id, if the target is a Canvas Control, or zero if the target is a Canvas Window or Bitmap |
Redraw |
Number |
Yes |
%TRUE or %FALSE
This option can provide a great improvement in the execution speed of Canvas statements, as it eliminates repetitive updates to the display.
If this option is set to %TRUE, all drawing statements are buffered until a Canvas_Redraw statement is executed, or the operating system chooses to update the target window.
If this option is missed or set to %FALSE, all graphical statements are performed immediately. |
Remarks
Restrictions
See also
Examples