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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

panel item W.int item(string s, int& x, int l, int h, const window handler& obj ,<br />

const char ∗ hlp = 0)<br />

as above with handler object obj .<br />

3.9.4 String Menu Items<br />

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

const char ∗ hlp = 0)<br />

adds a string item with label s, variable x, and<br />

menu L to W .<br />

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

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

as above with handler object obj .<br />

panel item<br />

panel item<br />

panel item<br />

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

const char ∗ hlp = 0)<br />

menu L is displayed in a scroll box of height sz.<br />

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

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

as above with action function F .<br />

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

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

as above with handler object obj .<br />

void W.set menu(panel item it, const list& L, int sz = 0)<br />

replaces the menu of string menu item it by a menu<br />

for list L (table style if sz = 0 and scroll box with<br />

sz entries otherwise).<br />

3.9.5 Choice Items<br />

panel item W.choice item(string s, int& x, const list& L, void (∗F )(int) = 0,<br />

const char ∗ hlp = 0)<br />

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

choices from L to W .<br />

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

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

as above with handler object obj .<br />

panel item<br />

W.choice item(string s, int& x, string s 1 , ..., string sk)<br />

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

choices s 1 , . . . , s k to W (k ≤ 8).

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

Saved successfully!

Ooh no, something went wrong!