The MASM Forum

General => The Campus => Topic started by: Paulo on August 18, 2013, 11:27:25 PM

Title: GUI designer
Post by: Paulo on August 18, 2013, 11:27:25 PM
Hi all

First post and wasn't quite sure where to post this, my apologies if it's in the wrong place.

Been using MASM32 for some time and although the new version of MASM has lots of useful tools, it doesn't have a GUI designer.
Call it laziness but it would be really nice to have one which allows users to "draw" the GUI which then would create the asm template.
Something similar to LB workshop which creates Basic code but for LibertyBasic.
Screen shot below.

Does anyone know if something like this exists for MASM?
Regards
Paulo.

(http://s15.postimg.org/6db7zei4r/Gui_Designer.jpg)
Title: Re: GUI designer
Post by: jj2007 on August 18, 2013, 11:40:37 PM
Hi Paulo,

You may try ResEd from the GeneSys project (http://pbrennick.freehosting.net/) - I attach it, hoping that Erol or Paul can add more info (and please, tell me if it's ok to post it here, otherwise I'll take it off immediately).

Welcome to the Forum :t

EDIT: Attachment removed, Hutch' post points to a much more recent version of the same ResEd made by Ketil Olsen.
Title: Re: GUI designer
Post by: Paulo on August 18, 2013, 11:42:58 PM
Hi jj2007

Thank you, I have downloaded it and will give it a try.

Regards
Paulo.

Title: Re: GUI designer
Post by: hutch-- on August 19, 2013, 12:09:26 AM
Paolo,

Have a look at this topic in the MASM Forum.

http://masm32.com/board/index.php?topic=239.0
Title: Re: GUI designer
Post by: Paulo on August 19, 2013, 12:23:56 AM
Thank you hutch, looks good.

Regards
Paulo.
Title: Re: GUI designer
Post by: Paulo on August 19, 2013, 12:26:35 AM
Quote from: jj2007 on August 18, 2013, 11:40:37 PM


EDIT: Attachment removed, Hutch' post points to a much more recent version of the same ResEd made by Ketil Olsen.

OK, I will get rid of the old version I downloaded and concentrate on the one hutch pointed me to.
Thanks.
Paulo.

Title: Re: GUI designer
Post by: dedndave on August 19, 2013, 12:58:44 AM
Bogdan has set up a few pages for Ketil

http://www.oby.ro/rad_asm/resed/index.html (http://www.oby.ro/rad_asm/resed/index.html)
http://www.oby.ro/rad_asm/ (http://www.oby.ro/rad_asm/)
Title: Re: GUI designer
Post by: Paulo on August 19, 2013, 01:31:31 AM
Thanks dedndave, will check them out.

Paulo.

Title: Re: GUI designer
Post by: Gunther on August 19, 2013, 02:19:11 AM
Hi Paulo,

welcome to the forum. Have fun.

Gunther
Title: Re: GUI designer
Post by: Paulo on August 19, 2013, 03:18:50 AM
Thank you Gunther

Regards
Paulo.
Title: Re: GUI designer
Post by: Paulo on August 19, 2013, 10:37:04 PM
Hi all

Had an idea to create my own GUI designer for MASM.
Instead of littering the forum with a long winded post on the details,
I have created three zip files with several jpegs and a text file.
(Reason for the three zip files is due to forum restriction on file sizes).
Total size for all the zips is 1.05MB.

Ideas and comments very welcome.
Regards
Paulo.

Title: Re: GUI designer
Post by: Paulo on August 19, 2013, 10:40:43 PM
Second part
Title: Re: GUI designer
Post by: Paulo on August 19, 2013, 10:44:00 PM
Third zip file.

Title: Re: GUI designer
Post by: dedndave on August 20, 2013, 12:31:17 AM
i think i would try to get away from the SVG file front-end
you can create a GUI with sizable/movable boxes without too much difficulty

here is a link to a little example program that has movable dividers
the same type of code can be used to move and/or size a box

http://masm32.com/board/index.php?topic=1026.msg10028#msg10028 (http://masm32.com/board/index.php?topic=1026.msg10028#msg10028)
Title: Re: GUI designer
Post by: Paulo on August 20, 2013, 02:43:07 AM
Hi dedndave

Thanks for the feedback.

As regards using the Inkscape (SVG) frontend, my thinking as follows:

1) The "editor" is already done and has all the drag and movement facilities one needs.

2) It produces SVG (amongst others) files which are plain text, well structured and relatively easy to parse.

3) Inkscape supports plugins (written in Python) so technically the whole process could be done within Inkscape.

4) To make a GUI app to support most of the windows controls would be a huge task, where as using SVG plus a parser
  one only needs to concentrate on the parser.

Another advantage of using the intermediate SVG step and also inc files for the parser is that each step is easily editable
and allows for easy tweaking to suit individual needs without the need to modify the executable.

Had a look at your example and it's certainly another possible approach although the code would need a lot of adding to
in order to support more windows controls or have I missed something?

Paulo.
Title: Re: GUI designer
Post by: dedndave on August 20, 2013, 03:06:29 AM
oh - you are certainly correct, there
a lot of additional code is needed - lol
but, the example shows how capture, clip, and drag work

i am familiar with InkScape - i like it for schematics and other technical drawings   :t

still, i like stand-alone apps   :biggrin:
from my experience, you'll always be bumping into the "i can't do that" wall, otherwise

Ketil's app is pretty comprehensive - and, he's a great coder
are there any features that you would want that ResEd doesn't have ?
Title: Re: GUI designer
Post by: Paulo on August 20, 2013, 03:29:15 AM
Quote from: dedndave on August 20, 2013, 03:06:29 AM
oh - you are certainly correct, there
a lot of additional code is needed - lol
but, the example shows how capture, clip, and drag work

Exactly why I thought about Inkscape as the frontend, saves a lot of work  :biggrin:

Quote from: dedndave on August 20, 2013, 03:06:29 AM
i am familiar with InkScape - i like it for schematics and other technical drawings   :t

I use it a lot as well, great for generating PDFs too.
Never thought to use it for schematics (good idea  :t), normally I just use Eagle for that.
Come to think of it, could probably do PCBs on it too as SVG lends itself well to that sort of thing.

Quote from: dedndave on August 20, 2013, 03:06:29 AM
still, i like stand-alone apps   :biggrin:
from my experience, you'll always be bumping into the "i can't do that" wall, otherwise

Perhaps it's my Linux roots showing, but I prefer to have access to each step of a process
(where applicable and practical) so it's easier to "tweak" instead of it all being inside one executable.
Of course there is always the chance of hitting an obstacle along the way.


Quote from: dedndave on August 20, 2013, 03:06:29 AM
Ketil's app is pretty comprehensive - and, he's a great coder
are there any features that you would want that ResEd doesn't have ?

Ketil's app is very comprehensive, just thought it would be fun to have a crack at making one.
If nothing else it will be a good learning exercise.

Paulo.
Title: Re: GUI designer
Post by: Farabi on August 20, 2013, 12:05:27 PM
 :t Impressive, I used AsmVisualEditor long time ago, or what is it name, it created by raymond sala, it fast and very easy to use.
Title: Re: GUI designer
Post by: Paulo on August 20, 2013, 05:42:18 PM
Hi Farabi

Thanks for letting me know about AsmVisualEditor.
I 'll see what Google turns up.

Paulo.

Title: Re: GUI designer
Post by: hutch-- on August 20, 2013, 06:26:28 PM
Paolo,

Just look here, its the project by Ramon Sala and its a very mature project.

http://masm32.com/board/index.php?board=25.0
Title: Re: GUI designer
Post by: Paulo on August 20, 2013, 06:30:10 PM
Thanks hutch.


EDIT:

Just been messing about with Ramon's Easy Code IDE and it's really great.
Any reason why it's not included as standard with the MASM32 download?
Title: Re: GUI designer
Post by: hutch-- on August 20, 2013, 07:27:08 PM
Yes, its Ramon's project that he maintains personally. I have worked in conjunction with Ramon on many useful things, recently it was the latest header file in MASM32.
Title: Re: GUI designer
Post by: Paulo on August 21, 2013, 04:33:29 AM
Quote from: hutch-- on August 20, 2013, 07:27:08 PM
Yes, its Ramon's project that he maintains personally.

Fair enough.

Quote from: hutch-- on August 20, 2013, 07:27:08 PM
I have worked in conjunction with Ramon on many useful things, recently it was the latest header file in MASM32.

And I thank you both for all the hard work, it's greatly appreciated.