зеркало из https://github.com/mono/mail-archives.git
104 строки
3.5 KiB
HTML
104 строки
3.5 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Gtk-sharp-list] Accesing individual menu elements
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Accesing%20individual%20menu%20elements&In-Reply-To=">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="006353.html">
|
|
<LINK REL="Next" HREF="006355.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Gtk-sharp-list] Accesing individual menu elements</H1>
|
|
<B>Emerson Posadas</B>
|
|
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Accesing%20individual%20menu%20elements&In-Reply-To="
|
|
TITLE="[Gtk-sharp-list] Accesing individual menu elements">toxickore at linuxmail.org
|
|
</A><BR>
|
|
<I>Fri Aug 26 12:27:15 EDT 2005</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="006353.html">[Gtk-sharp-list] [PATCH] Glade.Parser API problem.
|
|
</A></li>
|
|
<LI>Next message: <A HREF="006355.html">[Gtk-sharp-list] How do I get the contents of a ComboBoxEntry?
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#6354">[ date ]</a>
|
|
<a href="thread.html#6354">[ thread ]</a>
|
|
<a href="subject.html#6354">[ subject ]</a>
|
|
<a href="author.html#6354">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>-----BEGIN PGP SIGNED MESSAGE-----
|
|
Hash: SHA1
|
|
|
|
Again here with a silly question.
|
|
I'm creating a menu who contains some items like this:
|
|
|
|
//Creating the menu
|
|
Menu menuFile = new Menu ();
|
|
|
|
|
|
//Calling the addImageMenuItem method to add a new item
|
|
this.addImageMenuItem ("Sort list by tag", "pixmaps/gtk-sort-ascending.png",
|
|
menuFile);
|
|
this.AddImageMenuItem ("Another label", "pixmaps/gtk-sort-descending.png",
|
|
menuFile);
|
|
|
|
|
|
//the method
|
|
public void addImageMenuItem (string label, string imgpath, Menu men)
|
|
{
|
|
ImageMenuItem item = new ImageMenuItem (label);
|
|
Image img = new Image (imgpath);
|
|
item.Image = img;
|
|
men.Append (item);
|
|
}
|
|
|
|
Okay. The menu is created; and now i want to access to his items
|
|
and change their properties.
|
|
My question is: &#191;How do i access their elements?
|
|
-----BEGIN PGP SIGNATURE-----
|
|
Version: GnuPG v1.2.5 (GNU/Linux)
|
|
|
|
iD8DBQFDD0LB76YHuLjcnvURAtEyAJ0StVQrlSE0LJNlv+GD9S/BTNtXdgCghfDh
|
|
KbVz9p+m2K8o5i1/l1LKP+4=
|
|
=eTml
|
|
-----END PGP SIGNATURE-----
|
|
|
|
|
|
--
|
|
______________________________________________
|
|
Check out the latest SMS services @ <A HREF="http://www.linuxmail.org">http://www.linuxmail.org</A>
|
|
This allows you to send and receive SMS through your mailbox.
|
|
|
|
Powered by Outblaze
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="006353.html">[Gtk-sharp-list] [PATCH] Glade.Parser API problem.
|
|
</A></li>
|
|
<LI>Next message: <A HREF="006355.html">[Gtk-sharp-list] How do I get the contents of a ComboBoxEntry?
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#6354">[ date ]</a>
|
|
<a href="thread.html#6354">[ thread ]</a>
|
|
<a href="subject.html#6354">[ subject ]</a>
|
|
<a href="author.html#6354">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">More information about the Gtk-sharp-list
|
|
mailing list</a><br>
|
|
</body></html>
|