Can CEGUI create a popup menu ?

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

maitvn
Just popping in
Just popping in
Posts: 8
Joined: Fri Aug 01, 2008 03:54
Location: Sun system

Can CEGUI create a popup menu ?

Postby maitvn » Thu Aug 07, 2008 07:19

I want create a popup menu like when i click right mouse in Windows .
But i know CELayoutEditor can't do it . CELayoutEditor can only make a menu bar !


help me !

[/img]

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Thu Aug 07, 2008 07:57

Hi there,

indeed, the editor does not allow direct creation of popup menus. I can't remember why that was decided. Maybe a popup menu requires a parent bar. It's been a while since i used menus. Maybe this page can help you:

http://www.cegui.org.uk/wiki/index.php/MenuAndPopup

It demonstrates how to pick a popup menu form a menu and do stuff with it. You can try to create a menu (including bar) from the editor, and update your layout to only keep the popup menu and edit its dimensions.

Good luck!
Check out my released snake game using Cegui!


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 13 guests