mail-archives/gtk-sharp-list/2004-October/005032.html

90 строки
3.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] Manual layout in GtkSharp
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:gmoudry_2004%40hotmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="005038.html">
<LINK REL="Next" HREF="005033.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] Manual layout in GtkSharp
</H1>
<B>george moudry
</B>
<A HREF="mailto:gmoudry_2004%40hotmail.com"
TITLE="[Gtk-sharp-list] Manual layout in GtkSharp">gmoudry_2004@hotmail.com
</A><BR>
<I>Fri, 29 Oct 2004 23:40:23 +0000</I>
<P><UL>
<LI> Previous message: <A HREF="005038.html">[Gtk-sharp-list] GTK Widget demo created. Input requested
</A></li>
<LI> Next message: <A HREF="005033.html">[Gtk-sharp-list] Manual layout in GtkSharp
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#5032">[ date ]</a>
<a href="thread.html#5032">[ thread ]</a>
<a href="subject.html#5032">[ subject ]</a>
<a href="author.html#5032">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>I am interested in having a visual designer within VisualStudio, which could
allow similar design tasks as Glade -
I would like a novice user to be able to paste a button into a Gtk form and
double-click to write the 'Click' function (but without adding hboxes and
vboxes).
When searching through this list, I came across Miguel's post
<A HREF="http://www.mail-archive.com/mono-docs-list@ximian.com/msg00225.html">http://www.mail-archive.com/mono-docs-list@ximian.com/msg00225.html</A>
where he says:
&gt;<i>The first thing to keep in mind is that the use of absolute positioning on
</I>&gt;<i>a form is not recommended when using Gtk.
</I>&gt;<i>
</I>&gt;<i>The problem arises when a user changes his font, or is using the
</I>&gt;<i>application in another country. For example the common &quot;Ok&quot; button would
</I>&gt;<i>become &quot;Aceptar&quot; in spanish. So any absolute positioning is considered a
</I>&gt;<i>bad idea.
</I>
Agreeing that absolute layout has its problems, I still want to experiment
with it.
Miguel seems to say that 'it is not recommended' - implying that it is
possible - can anyone show me how?
I tried C# code such as:
Gtk.Button btn = new Button();
btn.Label = &quot;Button1&quot;;
btn.SetSizeRequest(100,100);
But the button occupies the entire GtkForm ...
Any ideas?
Regards,
George Moudry, Los Angeles
_________________________________________________________________
Check out Election 2004 for up-to-date election news, plus voter tools and
more! <A HREF="http://special.msn.com/msn/election2004.armx">http://special.msn.com/msn/election2004.armx</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="005038.html">[Gtk-sharp-list] GTK Widget demo created. Input requested
</A></li>
<LI> Next message: <A HREF="005033.html">[Gtk-sharp-list] Manual layout in GtkSharp
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#5032">[ date ]</a>
<a href="thread.html#5032">[ thread ]</a>
<a href="subject.html#5032">[ subject ]</a>
<a href="author.html#5032">[ author ]</a>
</LI>
</UL>
</body></html>