Navigation: ABC Library Reference >ActiveImage Class | |
ActiveImage Class is found in ActiveImage.inc and ActiveImage.clw.
To call any of the methods of the class use the Object Name for the instance of the class, e.g.
The object name is “OkImage”, so to call the methods we use dot syntax. For example, to set a tooltip we call the SetTip method, as in OkImage.SetTip('This is a tooltip').
Tooltips
Use the SetTip() method to add a tooltip to the image.
SetTip PROCEDURE (*CSTRING pValue)
SetTip PROCEDURE (STRING pValue)
GetTip PROCEDURE (),STRING
Enable/Disable
Use these methods to enable/disable the active image.
Enable PROCEDURE ()
Disable PROCEDURE ()
IsDisable PROCEDURE (),BYTE
IsVisible PROCEDURE (),BYTE
Check the current state
Use the GetState() method to check the current state.
GetState PROCEDURE (),BYTE
GetState() returns an EQUATE as shown below.
BUTTONSTATE:Normal EQUATE(1)
BUTTONSTATE:Hot EQUATE(2)
BUTTONSTATE:Pressed EQUATE(3)
BUTTONSTATE:Disabled EQUATE(4)
Hide/Unhide
Use the SetVisible method to hide/unhide the active image control. SetVisible(0) hides the control and any positive value unhides the control.
SetVisible PROCEDURE (BYTE pValue = 1)
Position and Size
The SetPosition() method sets the location coordinates and the width/height.
SetPosition PROCEDURE (SIGNED x, SIGNED y, SIGNED w, SIGNED h)