* 671 Posts in 238 Topics by 74 Members Latest Member: pythagoras   **
IFSO PORTAL
  Advanced search
May 20, 2013, 01:59:58 pm
HomeforumHelpSearchLoginRegister**
Recent Posts
[May 08, 2013, 10:38:33 pm]

[April 26, 2013, 02:00:31 pm]

[April 14, 2013, 12:39:49 pm]

[December 21, 2012, 06:13:17 am]

[November 13, 2012, 02:21:49 pm]

[August 28, 2012, 06:38:27 pm]

[May 28, 2012, 10:12:41 pm]

[May 05, 2012, 01:01:38 pm]

[May 03, 2012, 02:11:03 pm]

[April 30, 2012, 12:48:25 pm]
IFSO Portal  |  Forum  |  ifsoGUI  |  ifsoGUI Discussion  |  Topic: The form editor « previous next »
Pages: [1] Go Down Print
Author Topic: The form editor  (Read 1450 times)
matibee
ifsoGUI Owner
Newbie
*
Offline Offline

Posts: 28



View Profile
« on: August 11, 2009, 01:52:15 pm »

What thoughts do you have for the form editor file format.  I immediately tested loading with Bruceys libxml mod;

Code:
<window x="10" y="11" width="200" height="150" caption="Window 1" name="mywindow" resizable="true" dragtop="true"  >
<button x="20" y="20" width="60" height="40" caption="Button" name="mybutton1" />
<button x="20" y ="70" width="60" height="40" caption="Another Button" name="mybutton2" tip="A tool tip" />
<combobox x="20" y="120" width="100" height="40" name="combo1" >
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
<option>Option 4</option>
</combobox>
</window>

Really easy to read and write.

Ps.  You may notice I just deleted a topic - I was a bit guilty of new boy rambling.
Logged
TaskMaster
Administrator
Sr. Member
*****
Offline Offline

Posts: 462


TaskyZ
View Profile
« Reply #1 on: August 11, 2009, 02:08:29 pm »

What thoughts do you have for the form editor file format.  I immediately tested loading with Bruceys libxml mod;

Code:
<window x="10" y="11" width="200" height="150" caption="Window 1" name="mywindow" resizable="true" dragtop="true"  >
<button x="20" y="20" width="60" height="40" caption="Button" name="mybutton1" />
<button x="20" y ="70" width="60" height="40" caption="Another Button" name="mybutton2" tip="A tool tip" />
<combobox x="20" y="120" width="100" height="40" name="combo1" >
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
<option>Option 4</option>
</combobox>
</window>

Really easy to read and write.

Ps.  You may notice I just deleted a topic - I was a bit guilty of new boy rambling.

I hadn't really thought about it.  I kinda put it on the back burner to get some other things done.  Personally I have never used the things (except in VB, when it was tied directly to the coding), so I will have to look at a few of them for ideas.  I'm not even sure what the code it outputs should look like.  Should it output a fully contained type to handle the code and events, etc???

I did notice your post go away.  I saw it in the list and it was gone when I tried to read it.  Smiley
Logged
matibee
ifsoGUI Owner
Newbie
*
Offline Offline

Posts: 28



View Profile
« Reply #2 on: August 11, 2009, 02:30:35 pm »

Well, for inspiration you could look at wxFormBuilder.  It's capable of exporting code and xml (xrc).

The only issue with exporting types is if it can keep your current code when you export an updated layout.  Say I export a layout in code and write some code in the event handlers, what happens to that code next time I export?

My niave preference would be just for a layout tool, but a that would be your first step in development anyway.
Logged
Pages: [1] Go Up Print 
IFSO Portal  |  Forum  |  ifsoGUI  |  ifsoGUI Discussion  |  Topic: The form editor « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.17 | SMF © 2011, Simple Machines
TinyPortal v0.9.8 © Bloc
TechHead design by Bloc
Valid XHTML 1.0! Valid CSS!