InkPicture control
An InkPicture control collects pen input (“ink”) on a Tablet PC and
layers it on a picture. It is used to collect ink annotations to a picture
or signatures. It has no handwriting recognition capability.
Using with animation features
InkPicture controls may not paint correctly when you use animation
features.
Properties
InkPicture property |
Datatype |
Description |
---|---|---|
AutoErase |
Boolean |
Specifies whether the auto erase feature available TRUE — FALSE — AutoErase is turned |
Long |
Specifies the numeric value of the background |
|
Boolean |
Specifies whether the control has a border. Values TRUE — Control has a border. FALSE |
|
BorderStyle (enumerated) |
Specifies the border style of the control. Values StyleBox! StyleLowered! StyleRaised! StyleShadowBox! |
|
Boolean |
Specifies whether PowerBuilder moves the control to |
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
InkCollectionMode (enumerated) |
Specifies whether ink only, gestures only, or ink GestureOnly! InkOnly! — Only ink InkAndGesture! — Ink and |
|
Boolean |
Specifies whether PowerBuilder puts the control TRUE — FALSE — When the control is clicked, the |
|
String |
Specifies the name of the stock icon or the file When the user drags the control, the |
|
DynamicRendering |
Boolean |
Specifies whether the ink is rendered (displayed in |
InkPicEditMode |
Specifies whether the editing mode of the control InkPicDeleteMode! — Ink is InkPicInkMode! — Ink can be drawn InkPicSelectMode! — Ink is selected for |
|
Boolean |
Specifies whether the control is enabled (can be TRUE — Control can be FALSE — Control cannot be |
|
EraserMode |
Integer |
Specifies whether ink is removed by stroke or 0 — Ink is removed by stroke 1 — Ink is removed by |
EraserWidth |
Integer |
Specifies the width of the eraser pen tip in |
Integer |
Specifies the height of the control, in |
|
HighContrastInk |
Boolean |
Specifies whether ink is rendered in a single color TRUE — Ink is rendered in a single color in FALSE — Ink is not |
Boolean |
A drawing attribute that specifies whether the TRUE — FALSE — The |
|
Boolean |
A drawing attribute that specifies whether the TRUE — The ink stroke appears FALSE — The ink |
|
Long |
A drawing attribute that specifies the current ink |
|
Boolean |
Specifies whether the InkPicture control collects TRUE — The control collects FALSE — The control does not |
|
InkFileName |
String |
Specifies the name of the file that the ink was |
Integer |
A drawing attribute that specifies the height of |
|
InkTransparency |
Integer |
A drawing attribute that specifies the transparency |
Integer |
A drawing attribute that specifies the width of the |
|
MarginX |
Integer |
Specifies the x-axis margin around the control in |
MarginY |
Integer |
Specifies the y-axis margin around the control in |
PenTip |
InkPenTip (enumerated) |
A drawing attribute that specifies whether the pen PenTipBall! PenTipRectangle! |
PictureFileName |
String |
Specifies the name of a file that contains the |
PictureSizeMode |
DisplaySizeMode |
Specifies how the picture is displayed in the InkPicAutoSize! — The control InkPicCentered! — The picture is centered InkPicNormal! — The picture is InkPicStretched! — The picture is |
String |
Specifies the name of the stock pointer or the file |
|
String |
Specifies a PowerTip for the |
|
InkPicStatus |
Read-only property available at runtime that |
|
Integer |
Specifies the tab value of the control within the |
|
String |
Specifies the tag value assigned to the |
|
Boolean |
Specifies whether the control is visible. Values TRUE — Control is visible FALSE — Control is not |
|
Integer |
Specifies the width of the control, in PowerBuilder |
|
Integer |
Specifies the X position (the distance from the |
|
Integer |
Specifies the Y position (the distance from the top |
Events
InkPicture event |
Occurs |
---|---|
When the left mouse button is clicked in the |
|
When the object is created, immediately before the |
|
When the object is destroyed, immediately after the |
|
When a dragged control is dropped on the |
|
When a dragged control enters the |
|
When a dragged control leaves the |
|
When a dragged control is within the |
|
When a gesture has occurred |
|
Just before the control receives focus (before it |
|
When the user presses the F1 key or drags the |
|
When the control loses focus (becomes |
|
When a Windows message occurs that is not a |
|
When the right mouse button is pressed on the |
|
When an item in the control is |
|
When the selection is changing. Return 1 to prevent |
|
SizeChanged |
When the control has been resized |
When a stroke has occurred |
Functions
InkPicture function |
Datatype returned |
Description |
---|---|---|
String |
Returns the name of the control. |
|
Integer |
Starts or ends the dragging of a InkEdit |
|
Integer |
Creates a reference to a context-specific instance |
|
PowerObject |
Returns a reference to the name of the parent |
|
Integer |
Hides the specified InkEdit item. |
|
Integer |
Loads ink from a file or blob. |
|
Integer |
Loads a picture from a file or blob. |
|
Integer |
Moves a control or object to a specified |
|
Integer |
Determines the distance from the left edge of an |
|
Integer |
Determines the distance from the top edge of an |
|
Boolean |
Adds the event to the end of the event queue of an |
|
Integer |
Includes this object in a print job. Only the part |
|
Integer |
Clears ink from the control. |
|
Integer |
Clears a picture from the control. |
|
Integer |
Resizes a control to the specified |
|
Integer |
Saves a picture and optionally any overlay ink to a |
|
Integer |
Saves ink to a file or blob in one of the following |
|
Integer |
Sets focus for a specified object or |
|
Integer |
Sets the position of the InkEdit control in the |
|
Integer |
Controls the automatic redraw of an object after |
|
Integer |
Makes an object or control visible if it is hidden. |
|
Integer |
Triggers a specified event in the control and |
|
Object |
Returns the type of the control. |