1 Containers
2 Controls
3 Control Snips
4 Helpers
5 Snip Functions

Inherited methods:

from alignment<%>

align

get-min-height

get-min-width

get-parent

set-min-sizes

show

show/ hide

stretchable-height

stretchable-width

from dllist<%>

for-each

map-to-list

next

prev

Version: 4.0.2

 

embedded-button% : class?

  superclass: snip-wrapper%

  extends: 

alignment<%>

A clickable button with a bitmap label.

(new embedded-button%

 

[images images]

 

 

 

[callback callback])

 

  (is-a?/c embedded-button%)

  images : (cons/c path-string? path-string?)

  callback : ((is-a?/c button-snip%) (is-a?/c event%) . -> . void?)

The images argument is a pair filenames to be load as the button-label image, where the first is the image for when the button is at rest, and the second is the image for the button while its pressed.

The callback is called when the button is clicked.