Re: [gnomemm] How to make my own Menu Items ? help!!!
- From: Daniel Sundberg <dss home se>
- To: "gao chaowei" <chaoweigao hotmail com>
- Cc: gnomemm-list gnome org
- Subject: Re: [gnomemm] How to make my own Menu Items ? help!!!
- Date: Fri, 20 Dec 2002 13:23:02 +0100
On Fri, 20 Dec 2002 19:30:21 +0800
"gao chaowei" <chaoweigao hotmail com> wrote:
> I am writing a gnome application. I use gnomemm-1.2.
>
> I use Gnome::App, since it is easier to set up the window items. Now i want
> to make the menu. But I found there is only limited set of
> MenuItem(Save,Open,Close,Copy...). Now I want to make my own menu items,
> say "Next Solution". I know for "Exit" can be implement like this:
>
> vector<Gnome::UI::Info> menu_file;
> menu_file.push_back(Gnome::MenuItems::Exit(slot(this,
> &TreeApp::on_menu_file_exit)));
>
> How can I implement my menu items that are not predefined?? Urgent, anybody
> help me???
>
One example might be:
menu_file.push_back(Gnome::UI::Item(Gnome::UI::Icon(GNOME_STOCK_MENU_NEW),
N_("New network list-view"),
slot(this, &TreeApp::whatever),
N_("Create new network list-view")));
or
menu_file.push_back(Gnome::UI::Separator());
/Daniel
> _________________________________________________________________
> 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
>
> _______________________________________________
> gnomemm-list mailing list
> gnomemm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnomemm-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]