mail-archives/gtk-sharp-list/2007-January/007682.html

87 строки
4.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] Is it possible to create a button using the Glade-2 gui creater - when needing a button with a pango markup text?
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Is%20it%20possible%20to%20create%20a%20button%20using%20the%0A%20Glade-2%20gui%20creater%20-%20when%20needing%20a%20button%20with%20a%20pango%20markup%20text%3F&In-Reply-To=20070106185337.77fe0e63%40io.solnet">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="007680.html">
<LINK REL="Next" HREF="007684.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] Is it possible to create a button using the Glade-2 gui creater - when needing a button with a pango markup text?</H1>
<B>Jesper K. Pedersen</B>
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Is%20it%20possible%20to%20create%20a%20button%20using%20the%0A%20Glade-2%20gui%20creater%20-%20when%20needing%20a%20button%20with%20a%20pango%20markup%20text%3F&In-Reply-To=20070106185337.77fe0e63%40io.solnet"
TITLE="[Gtk-sharp-list] Is it possible to create a button using the Glade-2 gui creater - when needing a button with a pango markup text?">jkp at solnet.homeip.net
</A><BR>
<I>Sat Jan 6 13:29:58 EST 2007</I>
<P><UL>
<LI>Previous message: <A HREF="007680.html">[Gtk-sharp-list] Is it possible to create a button using the Glade-2 gui creater - when needing a button with a pango markup text?
</A></li>
<LI>Next message: <A HREF="007684.html">[Gtk-sharp-list] Advanced/Outlook-ish Calendar Widgetry
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7682">[ date ]</a>
<a href="thread.html#7682">[ thread ]</a>
<a href="subject.html#7682">[ subject ]</a>
<a href="author.html#7682">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Sat, 6 Jan 2007 18:53:37 +0100
&quot;Jesper K. Pedersen&quot; &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">jkp at solnet.homeip.net</A>&gt; wrote:
&gt;<i> Having started to write a small application using C# and Gtk# I have
</I>&gt;<i> so far been using the Glade-2 gui developer.
</I>&gt;<i>
</I>&gt;<i> I have however run into a difficulty. Currently all buttons made are
</I>&gt;<i> just usual GtkButtons - but I need buttons with the ability to format
</I>&gt;<i> the text with the Pango markup language.
</I>&gt;<i>
</I>&gt;<i> Creating buttons in the C# code that uses a regular markup-label is
</I>&gt;<i> easy, but is it possible to insert this kind of button in the Glade-2
</I>&gt;<i> software so not to mix Glade-2 and program inserted objects?
</I>&gt;<i>
</I>&gt;<i> Any hints are greatly appreciated
</I>&gt;<i>
</I>
I will just answer myself so people dont waste time on writing the
answer to me.
The answer was listed in the FAQ for Glade which I had overlooked (yet
another reason for RTFM)
You just create the button - right click it. Remove the content of the
button and now you can insert new content - like either a label with
markup language which is what I needed.
Thank you all
Jesper K. Pedersen
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="007680.html">[Gtk-sharp-list] Is it possible to create a button using the Glade-2 gui creater - when needing a button with a pango markup text?
</A></li>
<LI>Next message: <A HREF="007684.html">[Gtk-sharp-list] Advanced/Outlook-ish Calendar Widgetry
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7682">[ date ]</a>
<a href="thread.html#7682">[ thread ]</a>
<a href="subject.html#7682">[ subject ]</a>
<a href="author.html#7682">[ 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>