MagicButton Programming

 

Property

ImagePath

Remark:
ImagePath property is used to set the skin of the button. 

ButtonState

Remarks:
Set the button state. Following are the value for the four states:
Up( or Selected):         1
Down (or Selected):    2
Focused:                         3
Disabled:                        4

Methods

imageID(long hInstance, long imageID)

Parameter:

hInstance:            Current application instance
imageID:            Bitmap resource ID for the button


Remark:
Used by Visual C++ only. You use this method if you want to put background image and mask image in the application resource file. This is useful if you want to ship a single executable with everything in it.

 

Events

Clicked(long x, long y)

Parameters:

x:        x coordinate of the mouse when clicked
y:        y coordinate of the mouse when clicked