31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

panel item<br />

panel item<br />

panel item<br />

W.choice item(string s, int& x, int n, int w, int h, unsigned char ∗ ∗bm,<br />

const char ∗ hlp = 0)<br />

adds an integer item with label s, variable x, and<br />

n bitmaps bm[0], . . . , bm[n − 1] each of width w<br />

and height h.<br />

W.choice item(string s, int& x, int n, int w, int h, unsigned char ∗ ∗bm,<br />

void (∗F )(int), const char ∗ hlp = 0)<br />

W.choice item(string s, int& x, int n, int w, int h, unsigned char ∗ ∗bm,<br />

const window handler& obj , const char ∗ hlp = 0)<br />

as above with handler object obj .<br />

3.9.6 Multiple Choice Items<br />

panel item W.choice mult item(string s, int& x, const list& L,<br />

const char ∗ hlp = 0)<br />

panel item W.choice mult item(string s, int& x, const list& L,<br />

void (∗F )(int), const char ∗ hlp = 0)<br />

panel item W.choice mult item(string s, int& x, const list& L,<br />

const window handler& obj , const char ∗ hlp = 0)<br />

panel item W.choice mult item(string s, int& x, int n, int w, int h,<br />

unsigned char ∗ ∗bm, const char ∗ hlp = 0)<br />

panel item W.choice mult item(string s, int& x, int n, int w, int h,<br />

unsigned char ∗ ∗bm, void (∗F )(int),<br />

const char ∗ hlp = 0)<br />

panel item W.choice mult item(string s, int& x, int n, int w, int h,<br />

unsigned char ∗ ∗bm, const window handler& obj ,<br />

const char ∗ hlp = 0)<br />

3.9.7 Buttons<br />

<strong>The</strong> first occurence of character ’&’ in a button label makes the following character c an<br />

accelerator character, i.e., the button can be selected by typing ALT-c from the keyboard.<br />

int W.button(string s, int n, const char ∗ hlp = 0)<br />

int W.fbutton(string s, int n, const char ∗ hlp = 0)<br />

adds a button with label s and number n to W .<br />

as above but makes this button the focus button of<br />

W , i.e., this button can be selected by pressing the<br />

return key.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!