DisplaceBitmap

>>-aButtonControl~DisplaceBitmap(--x--,--y--)------------------><


The DisplaceBitmap method sets the position of a bitmap within a bitmap button.

Arguments:

The arguments are:

x

The horizontal displacement, in screen pixels. A negative value can also be used.

y

The vertical displacement, in screen pixels. A negative value can also be used.

Example:

The following example moves the bitmap within the associated bitmap button 4 screen pixels to the right and 3 pixels upward:

button = MyDialog~GetButtonControl("IDOK")
if button == .Nil then return
parse value button~GetBmpDisplacement with dx dy
button~DisplacementBitmap(244, dx+4, dy-3)