[Gtk-sharp-list] Question about Status bar and Menu bar
Sergio Duran
Sergio Duran <sergioduran@gmail.com>
Fri, 19 Nov 2004 10:37:52 -0600
I'm still learning gtk# and C# so I dont know if this is the best method...
I make no guarantees, I'm still learning :)
class test {
Menu menu;
MenuItem item;
Statusbar status;
Label label;
static void Main() {
new test();
}
public test() {
.. create window ...
label =3D new Label("status bar label");
status.Add(label);
menu =3D new Menu();
item =3D new MenuItem("Item1");
item.Activated +=3D new EventHandler(ItemActivated);
menu.Add(item);
.. add menu and statusbar to window ...
}
void ItemActivated(object o, EventArgs args) {
label.Text=3D"an item was clicked";
}
}
On Fri, 19 Nov 2004 17:19:38 +0100, Antonio Guti=E9rrez Mayoral
<agutierr@gsyc.escet.urjc.es> wrote:
> Hi list,
>=20
> I have a question about Status bar widget and the menu bar. I have my
> app where I have a Menu bar, with Menu entrys, and I have the status bar
> where I would like to write messages about the entrys on Menu. When the
> user select a menu entry, I would like to write a message on the status
> bar. But, I dont know what event is asociated to put mouse over a menu
> entry.
>=20
> Help!! Thanks.
> --
> Antonio Guti=E9rrez Mayoral
> Escuela Superior de CC Experimentales y Tecnolog=EDa
> Universidad Rey Juan Carlos
> web: http://gsyc.escet.urjc.es/~agutierr
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>