FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Menu and separator

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
chpl



Joined: 30 Nov 2007
Posts: 2

PostPosted: Fri Nov 30, 2007 7:11 am    Post subject: Menu and separator Reply with quote

Hi

Sorry for my english! Smile

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 Smile!

cu
chpl
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Fri Nov 30, 2007 10:18 am    Post subject: Re: Menu and separator Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group