 
      | DrawPaint Methods | |
|---|---|
| AddItem | Add an item to the queue of items | 
| AlignBottom | Align selected items bottom | 
| AlignLeft | Align selected items left | 
| AlignRight | Align selected items right | 
| AlignTop | Align selected items top | 
| CalcStringDims | Calculates the width and height of a string | 
| Construct | Called when the object comes into scope | 
| CopyItems | Copies the selected items so that they can be pasted | 
| DeleteItem | Deletes an item | 
| Destruct | Called when the object leaves scope | 
| DrawHighlightBox | Draws a highlight (selection indicator) | 
| DrawHighlights | Draws the highlighting for all selected items | 
| DrawItems | Draws all the items in the queue | 
| FindParent | Find parent for the item | 
| GetAltPicture | Returns a display picture - embed code here to set returnvalue | 
| HideHighlight | Hides the highlight (selection) layer | 
| Init | Initializes the object and control | 
| InResizeCorner | Determines whether the cursor is over the resize area of a selected item | 
| ItemClicked | Called when an item was clicked on | 
| Kill | Cleans up frees allocated memory | 
| MakeSameHeight | Makes all selected items the same height | 
| MakeSameSize | Makes all selected items the same size | 
| MakeSameWidth | Makes all selected items the same width | 
| MoveItems | Moves all selected items by the amount specified | 
| PasteItems | Pastes a copy of any items that have been copied by calling CopyItems | 
| PicExample | Returns an example text (as seen while editing clarion reports - e.g. $$$$$$$$$$ for a string) for the supplied picture | 
| RedrawHighlightBox | Draws the highlight after an object has moved | 
| Reset | Reset the layers used for drawing | 
| ResizeItem | Resizes and item | 
| SaveHighlightPos | Saves a new highlight position for an item | 
| SetCanvasSize | Resizes and clears the canvas and all used layers | 
| SetCursor | Sets or resets the cursor | 
| SetGrid | Redraws or hides the grid layer | 
| SortItems | Sorts the items based on the z-order | 
| SpreadHorizontally | Spreads out the selected items evenly horizontally | 
| SpreadVertically | Spreads out the selected items evenly vertically | 
| TakeClickEvent | Called when the user clicks on the control | 
| TakeDragEvent | Called when the user clicks and drags | 
| TakeDropEvent | Called when the user releases the mouse button after clicking and dragging. | 
| TakeEvent | Called when the control receives an event | 
| TakeResizeEvent | Called to handle a resize event | 
| WithItem | Selects a particular item from the queue | 
| Parameter | Description | 
|---|---|
| zOrder | Determines the order in which the object is drawn, object with a low z-order are drawn first, and object with a higher z-order are draw on top of them. The higher the z-order the higher up the "stack" the object is. | 
| Add a String | 
|---|
| Drawer.ItemQueue.type = create:string Drawer.ItemQueue.TextValue = 'Hello World!' Drawer.ItemQueue.FontName = 'Tahoma' Drawer.ItemQueue.xpos = 20 Drawer.ItemQueue.FontColor = color:black Drawer.ItemQueue.FontSize = Random(12, 32) Drawer.ItemQueue.ypos = 10 + Drawer.ItemQueue.FontSize * 2 Drawer.ItemQueue.FontStyle = Choose(Random(1,3), font:regular, font:bold, font:italic) Drawer.AddItem() | 
| Add an Image | 
| Drawer.Logging = 1 Drawer.ItemQueue.type = create:image Drawer.ItemQueue.xpos = 120 Drawer.ItemQueue.ypos = 120 Drawer.ItemQueue.TextValue = 'capesoft.bmp' Drawer.AddItem() | 
| Add a Box | 
| Drawer.ItemQueue.type = create:box Drawer.ItemQueue.xpos = 50 Drawer.ItemQueue.ypos = 250 Drawer.ItemQueue.width = 300 Drawer.ItemQueue.height = 200 Drawer.ItemQueue.BoxBorderColor = Random(0F00F0Fh, 0FFFFFFh) Drawer.ItemQueue.BoxFillColor = Random(00F0F0Fh, 0FFFFFFh) Drawer.AddItem() | 
| Add a Line | 
| Drawer.ItemQueue.type = create:line Drawer.ItemQueue.xpos = 100 Drawer.ItemQueue.ypos = 15 Drawer.ItemQueue.width = 100 Drawer.ItemQueue.height = 100 Drawer.ItemQueue.LineColor = Random(0F0F0Fh, 0FFFFFFh) Drawer.ItemQueue.LineStyle = Choose(Random(1, 3), pen:solid, pen:dash, pen:dot) Drawer.AddItem() | 
| Add an Ellipse | 
| Drawer.ItemQueue.type = create:ellipse Drawer.ItemQueue.xpos = 305 Drawer.ItemQueue.ypos = 35 Drawer.ItemQueue.width = 400 Drawer.ItemQueue.height = 250 Drawer.ItemQueue.BoxBorderColor = Random(0F0F0Fh, 0FFFFFFh) Drawer.ItemQueue.BoxFillColor = Random(0F0F0Fh, 0FFFFFFh) Drawer.AddItem() | 
| Add an Arc | 
| Drawer.ItemQueue.type = create:arc Drawer.ItemQueue.xpos = 20 Drawer.ItemQueue.ypos = 20 Drawer.ItemQueue.width = 100 Drawer.ItemQueue.height = 100 Drawer.ItemQueue.LineWidth = 5 Drawer.ItemQueue.StartAngle = 450 Drawer.ItemQueue.EndAngle = 1200 Drawer.ItemQueue.BoxBorderColor = Random(0F0F0Fh, 0FFFFFFh) Drawer.AddItem() | 
| DrawPaint Properties | |
|---|---|
| CanMoveNow | long | 
| canvasColor | long | 
| CopyItemQueue | &CopyItemQueueType | 
| gridColor | long | 
| gridEnabled | long | 
| gridStyle | long | 
| gridWidth | long | 
| hDrawFactor | decimal(20, 10) | 
| HighLight | group | 
| ItemQueue | &DrawPaintItemQueueType | 
| LockParents | long | 
| Moving | long | 
| Resizing | long | 
| vDrawFactor | decimal(20, 10) | 
| ZoomFactor | long | 
| _control | long | 
| _DeltaX | long | 
| _DeltaY | long | 
| _highlighted | long | 
| _HighlightItems | long | 
| _HighlightQueue | &HighlightQueueType | 
| _items | long | 
| _MultiClickCount | long | 
| _nextId | long | 
| _StartMouseX | long | 
| _StartMouseY | long | 
| ItemQueue members (properties) | ||
|---|---|---|
| ID | long | Description | 
| type | long | The type of object. the following types are supported; create:string, create:image, create:line, create:box, create:ellipse, create:arc | 
| Common (generic) properties | ||
| xpos | long | the x position of the object | 
| ypos | long | the y position of the object | 
| width | long | the width (in pixels) of the object | 
| height | long | the height (in pixels) of the object | 
| zorder | long | |
| hidden | long | |
| transparent | long | |
| Line Properties | ||
| lineColor | long | |
| lineStyle | long | |
| lineWidth | long | |
| Box Properties | ||
| boxBorderColor | long | |
| boxFillColor | long | |
| boxRounded | long | |
| Font Properties | ||
| fontColor | long | |
| fontSize | long | |
| fontStyle | long | |
| fontCharset | long | |
| fontName | string | |
| textValue | string | |
| Image Properties | ||
| imageName | string | |
| imageStretch | long | |
| imageCentered | long | |
| imageTiled | long | |
| imageBitdepth | long | |
| imageFileType | long | |
| Parent Properties | ||
| isParent | long | |
| parentID | long | |
| File Properties | ||
| recNum | long | |
| Guid | string | |
| String Properties | ||
| justify | long | |
| picture | long | |
| clipped | long | |
| fitWidth | long | |
| fitHeight | long | |
| textBox | long | |
| RTF | long | |
| Arc Properties | ||
| StartAngle | long | Tenths of a degree, anti-clockwise, from 3 o'clock. eg 1800 is 9 O'clock | 
| EndAngle | long | Tenths of a degree, anti-clockwise, from 3 o'clock |