Skip to content
Prev 39 / 1236 Next

[R-gui] Another R-GUI

OK, now I see why we are not in phase: you speak about a dialog box
definition file used by the compiler. At this point it is very easy to add
other "widgets". It is exactly the same for Visual Basic. On the other hand,
I talk about a dialog box specification file that can be used to create a
dialog box *at run time*, that is by a compiled program (being written in
Delphi, Visual Basic, Java, C, or whatever,...). This is definitively a
different matter! Especially if we should be able to implement that dialog
box with various languages and different graphical toolkits on all platforms
supported by R,... a more difficult but not completelly inaccessible goal.

Philippe

-----Message d'origine-----
De : Duncan Murdoch [mailto:murdoch@stats.uwo.ca]
Envoye : lundi 25 novembre 2002 17:25
A : phgrosjean@sciviews.org
Cc : r-sig-gui@stat.math.ethz.ch
Objet : Re: [R-gui] Another R-GUI


On Mon, 25 Nov 2002 16:31:51 +0100, you wrote in message
<MABBLJDICACNFOLGIHJOEEEADBAA.phgrosjean@sciviews.org>:
I think the way Delphi handles this is good.  It doesn't use XML, it
uses its own language, but I think there's a 1-1 map to XML.  A
typical form definition file might look like this:
Delphi calls windows "forms".  This is a dialog box declared to be of
type "TForm3", which I just created.  The compiler would see the
declaration and would know what TForm3 means.
These are a number of properties of the form that have been set to
non-default values.
This is a button that has been added to the form, with some
non-default properties.  Delphi knows that TButton is a button,
because it has been registered with the system.  If I wanted an OCX,
I'd register TMyOCX with the system, and it would be allowed here too.
If other components had been added to the form, their descriptions
would follow the button definition.  Some components can have other
components nested within them.
Sounds great!  By the way, there's some progress on getting it past
being just a "prototype".  I'm hoping to get some help translating to
C++ early next year, at which point I can clean up some ugliness in
the original version, make it available on more platforms, and start
adding requested features to it.

Duncan Murdoch