Algorithmic Solutions > LEDA > LEDA Guide > Windows and Panels > Panel Buttons > Example Pixrect Panel Buttons

Example Pixrect Panel Buttons

The following program generates a panel of pixrect buttons.

On the right there is a screenshot of the program. Clicking on the picture shows the window in original size.

Picture of Convex Hull
#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;
}

See also:

Panel Buttons

Windows and Panels

Bitmaps

Panel Items

Strings

Example Bitmap Buttons


Manual Pages:

Manual Page Windows




Please send any suggestions, comments or questions to leda@algorithmic-solutions.com
© Copyright 2001-2003, Algorithmic Solutions Software GmbH