#include <LEDA/graphics/window.h>
#include <LEDA/graphics/pixmaps/button32.h>
using namespace leda;
int main()
{
panel P("Pixrect Buttons");
P.buttons_per_line(10);
P.set_button_space(3);
for (int i=0;i<num_xpm_button32;i++) {
char* pr=P.create_pixrect(xpm_button32[i]);
P.button(pr,pr,name_xpm_button32[i],i);
}
int button=P.open();
return 0;
}
|