Edit Page
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 286: | Line 286: | ||
</pre> |
</pre> |
||
− | To complete the rectangle tool, we need to make sure that when the program first runs it doesn’t think it has already captured a rectangular area. In the FormCreate procedure put: |
+ | To complete the rectangle tool, we need to make sure that when the program first runs it doesn’t think it has already captured a rectangular area. In the FormCreate procedure put: <code data-rte-washtml="1"><img data-rte-meta="%7B%22type%22%3A%22ext%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%3Cpre%3E%5CnholdingSomething%20%3A%3D%20false%3B%5Cn%3C%5C%2Fpre%3E%22%7D" data-rte-instance="30-15356253914e7a353425b8d" class="placeholder placeholder-ext" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="ext" /></code> That was quite a lengthy write, and you will no doubt have some errors to fix before you get it all working. However, we have developed a way of temporarily drawing a figure on the image as the mouse moves and restoring the image afterward. You can use this to do several other tools with much less work. |
− | <pre> |
||
− | holdingSomething := false; |
||
− | </pre> |
||
− | That was quite a lengthy write, and you will no doubt have some errors to fix before you get it all working. However, we have developed a way of temporarily drawing a figure on the image as the mouse moves and restoring the image afterward. You can use this to do several other tools with much less work. |
||
==Filled Rectangle, Ellipse, Line and Brush Tools== |
==Filled Rectangle, Ellipse, Line and Brush Tools== |