mail-archives/gtk-sharp-list/2004-February/003444.html

91 строка
3.7 KiB
HTML
Исходник Постоянная ссылка Обычный вид История

2019-06-06 22:02:55 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] Glade
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:djp%40visi.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="003442.html">
<LINK REL="Next" HREF="003479.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] Glade
</H1>
<B>Doug Pomerenke
</B>
<A HREF="mailto:djp%40visi.com"
TITLE="[Gtk-sharp-list] Glade">djp@visi.com
</A><BR>
<I>20 Feb 2004 12:10:24 -0600</I>
<P><UL>
<LI> Previous message: <A HREF="003442.html">[Gtk-sharp-list] How to use Pango.Global.ParseMarkup in c#
</A></li>
<LI> Next message: <A HREF="003479.html">[Gtk-sharp-list] Glade
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3444">[ date ]</a>
<a href="thread.html#3444">[ thread ]</a>
<a href="subject.html#3444">[ subject ]</a>
<a href="author.html#3444">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>I'm reposting this because I suspect that the first posting was not done
correctly.
Is it possible to make custom widgets with Glade, then add them to a
container at run time. Something like the User Controls that are a
feature of C# with MS Visual Studio. The reason I ask is that I want to
put all the GUI components for a discrete business operation, (use
case), in the custom widget. All events are handled in a corresponding
adapter, (or should it be called a bridge) class. The goal is to not
have any dependencies among the user interface components of different
business operations. Something I have experienced when coding with MS VB
is that after implementing and testing an application, the business
unit, (customer), will say that they won't need a certain feature, or
that they want another program written, (quickly), that will have only
these controls over here. Well, if you know how VB works, all the
controls on a form, (user interface elements of a dialog window), are on
that form at design time. So you get a single source code file with
hooks to unrelated business functionality that must be undone.
It seems that the way that Glade works, one would have to put the GUI
components for each discrete business operation on its own dialog,
something a customer likely will not be happy about. It might be
possible to use Glade to lay out the widgets of each of your custom
widgets on dialog windows, hack away the XML for the GtkWindows of each
of these dialog windows, then at design time, parse through the XML of
the dialog window which will act as a container, and insert the hacked
XML in the correct places. A very round about way of getting it done.
I'm working on a client server desktop app with a source code tree that
will compile with mono using Gtk#, and DotGnu using their SWF, and
Visual Studio using .NET. Because .NET lets me use User Controls for
each business feature, I want to follow the same arch and patterns with
the Gtk# implementation of the GUI. This all boils down to reuse of
code.
Regards.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="003442.html">[Gtk-sharp-list] How to use Pango.Global.ParseMarkup in c#
</A></li>
<LI> Next message: <A HREF="003479.html">[Gtk-sharp-list] Glade
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3444">[ date ]</a>
<a href="thread.html#3444">[ thread ]</a>
<a href="subject.html#3444">[ subject ]</a>
<a href="author.html#3444">[ author ]</a>
</LI>
</UL>
</body></html>