mail-archives/gtk-sharp-list/2005-August/006351.html

75 строки
2.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] Absolute positioning using Gtk.Fixed container
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Absolute%20positioning%20using%20Gtk.Fixed%20container&In-Reply-To=1124979899.10513.12.camel%40localhost.localdomain">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="006350.html">
<LINK REL="Next" HREF="006352.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] Absolute positioning using Gtk.Fixed container</H1>
<B>Dan Winship</B>
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Absolute%20positioning%20using%20Gtk.Fixed%20container&In-Reply-To=1124979899.10513.12.camel%40localhost.localdomain"
TITLE="[Gtk-sharp-list] Absolute positioning using Gtk.Fixed container">danw at novell.com
</A><BR>
<I>Thu Aug 25 10:39:05 EDT 2005</I>
<P><UL>
<LI>Previous message: <A HREF="006350.html">[Gtk-sharp-list] Absolute positioning using Gtk.Fixed container
</A></li>
<LI>Next message: <A HREF="006352.html">[Gtk-sharp-list] Absolute positioning using Gtk.Fixed container
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6351">[ date ]</a>
<a href="thread.html#6351">[ thread ]</a>
<a href="subject.html#6351">[ subject ]</a>
<a href="author.html#6351">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Jo Vermeulen wrote:
&gt;<i> My method requires that I can get the position of each widget at all
</I>&gt;<i> times. I haven't found how to do this in Gtk# though.
</I>
Given
Gtk.Fixed fixed;
Gtk.Widget child;
do:
Gtk.Fixed.FixedChild fc = fixed[child] as Gtk.Fixed.FixedChild;
Console.WriteLine (&quot;child is at {0}, {1}&quot;, fc.X, fc.Y);
-- Dan
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="006350.html">[Gtk-sharp-list] Absolute positioning using Gtk.Fixed container
</A></li>
<LI>Next message: <A HREF="006352.html">[Gtk-sharp-list] Absolute positioning using Gtk.Fixed container
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6351">[ date ]</a>
<a href="thread.html#6351">[ thread ]</a>
<a href="subject.html#6351">[ subject ]</a>
<a href="author.html#6351">[ 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>