# Function: lm_exitbutton

## CALL:

h = lm_exitbutton(hparent, BACKG, callback, btn)

## DESCRIPTION:

Add exit button to frame. By default this button is placed in the upper right corner of a frame.

## INPUT:

hparent | any |
    handle van parent frame
BACKG | any |
    color for transparant part of button
callback | any |
    additional function to call when frame is closed
btn | any |
    cdata

## OUTPUT:

h | any |
    handle van button

## EXAMPLE:

          positioneer button rechts onder
          h=lm_exitbutton(hparent)
      				h=lm_exitbutton(h_hlp)
      				setappdata(h,'normpos',[ 1 1 0 0]);
      				setappdata(h,'pixelpos',[-14 -14 12 12]);
          For demo see: test_lm_exitbutton

      SEE ALSO: lm_exittext, lm_frameonoff