User Tools

Site Tools


activeimage_class.htm
Navigation:  ABC Library Reference >ActiveImage Class Previous pageReturn to chapter overviewNext page

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.

ActiveImgName

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)

activeimage_class.htm.txt · Last modified: 2021/04/15 15:56 by 127.0.0.1