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

Example Bitmap Panel Buttons

The following program generates a panel of bitmap 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/bitmaps/button32.h>

using namespace leda;

int main()
{
  panel P("Bitmap Buttons");
  P.buttons_per_line(8);
  P.set_button_space(3);

  for (int i=0;i<num_xbm_button32;i++)
    P.button(32,32,xbm_button32[i],string(name_xbm_button32[i]));

  int button=P.open();
		
  return 0;
}

See also:

Panel Buttons

Windows and Panels

Bitmaps

Panel Items

Strings

Example Pixrect 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