Re: Creating window elements on the fly - can it be done?

Petit Eric <[email protected]>
Newsgroups gmane.comp.gnome.winforms
Message-ID <[email protected]>
yes all is already in the designer namespace + codedom

2010/2/10 PFJ <[email protected]>:
>
> Hi,
>
> I'm trying to do something which I'm not sure if it's possible to do, so
> please be patient.
>
> I have a winform with a single window that has nothing in it. The code for
> the winform loads an XML file which has three elements - designer,
> questions, answers. The questions and answers elements aren't a problem,
> they're strings and things like that. The problem is the designer.
>
> The idea is that the window is just a canvas. In the designer I have the
> likes of
>
> <objecttype>RtfTextBox</objecttype>
> <xpos>100</xpos>
> <ypos>100</ypos>
> <xsize>250</xsize>
> <ysize>200</ysize>
> <writable>false</writable>
> <visible>true</visible>
> <usemethod>null</usemethod>
>
> This is very simplistic.
>
> The question is, can I take this data and just create a new window object
> from it. Currently <objecttype> is a string, if I change it to object, can I
> then just say object foo = new object(); and (for example here) creates an
> RtfTextBox?
>
> TTFN
>
> Paul
> --
> View this message in context: http://old.nabble.com/Creating-window-elements-on-the-fly---can-it-be-done--tp27530188p27530188.html
> Sent from the Mono - WinForms mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-winforms-list maillist  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>



-- 
 Cordially.

Deploy your softwares for all platforms and finally update them in 3 clicks.
Try now the OpenSource MonoOSC tool
http://monoosc.sourceforge.net/
http://download.opensuse.org/repositories/home:/surfzoid/
http://download.opensuse.org/repositories/home:/surfzoid:/DebianUbuntu/
http://download.opensuse.org/repositories/home:/surfzoid:/DebianUbuntu:/Mono/

windows take you more($), Linux give you more!!
Political Power cannot be wisdom!

 Small Eric Quotations of the days:
 ---------------------------------------------------------------------------
 I have no special talents. I am only passionately curious
_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.