View previous topic :: View next topic |
Author |
Message |
chpl
Joined: 30 Nov 2007 Posts: 2
|
Posted: Fri Nov 30, 2007 7:11 am Post subject: Menu and separator |
|
|
Hi
Sorry for my english!
Is there a place for samples or documents for this api ?
I tried to implement a menu with a seperator between the items.
I couldn find any information how to do this and no method for it.So i seems not to be implemnted jet.
So i thought ok lets do it. I opend the file menu.d and looked how it worked. And there i saw that if i create a menuitem like ...
Code: |
MenuItem subItem = new MenuItem("-");
|
Code: |
MainMenu mainMenu = new MainMenu;
MenuItem item = new MenuItem("MenueItem");
MenuItem subItem = new MenuItem("-");
item.menuItems().add(subItem);
mainMenu.menuItems().add(item);
|
it is a separator !
cu
chpl |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Fri Nov 30, 2007 10:18 am Post subject: Re: Menu and separator |
|
|
There's the menu documentation page but it doesn't explain much. The best way is probably to grep through the examples that come with DFL and check out how stuff is done there. The tutorials point you to the examples. |
|
Back to top |
|
|
|