FBSL Mini Form Designer Version Alpha!

(Updates to FBSL Editors, RAD and Related Stuff)

FBSL Mini Form Designer Version Alpha!

Unread postby Mike Lobanovsky » Thu Jan 18, 2007 12:24 am

Dear friends,

Here's, as promised, the alpha version of my new FBSL Mini Form Designer. It comes
as a standalone executable plus dependencies because I haven't yet documented the
source code in full. As soon as I have it ready and based on your observations and
tests, I'll release the entire source script.

Why FMFD?
=========
Because a R(apid)A(pplication)D(evelopment) environment is a must for any serious
contemporary programming language. It is intended to assist FBSL coders in
developing attractive, user-friendly windowed interfaces based on the set of common
controls Windows provides as standard.

Why "Mini"?
===========
Because FMFD serves only the most urgent needs of FBSL users while the full-scale
FBSL Script Factory project that combines a highlighting editor and a visual designer
in an MDI environment, is still at its development stage.

What it doesn't?
================
- FMFD doesn't support multiple selection operations (FSF will have this feature);
- FMFD doesn't reflect current changes made to the form design and layout (FSF will
have this feature). Each change in the current form designer window must be followed
by generating a new code window, whereby all modifications to the code made directly
in the preceding code generator window will be lost in the new one;
- FMFD version alpha's code generator doesn't produce a separate block of control
(ex)style constants for those of them that are not presently built into, and recognized
by, FBSL itself (this feature will hopefully be available in FMFD version beta). Until
then, the numeric values for these (ex)style constants will have to be added by the
user manually;
- FMFD version alpha does not generate any code for setting the control-specific
extended styles (see "Ctl Extended" button on the Styles pane). The problem is that
these styles can't be set in a usual way by SetWindowLong() with the GWL_EXSTYLE flag.
FMFD version beta will have this feature fully functional for every common control that
has specific extended styles. In the meantime, the user is supposed to add the appropriate
code manually.

What it does?
=============
- FMFD generates and saves an .fbs script template for the projected user interface
design which can easily be developed into a complete GUI application;
- FMFD generates a .vdf visual designer form file that stores all the relevant control
design and placement data for easy restoration and modification of complicated visual
designs;
- FMFD provides handy means to change standard and extended styles of control windows,
as well as a few basic control properties. All changes are readily made effective by
clicking the "Apply Changes" button. The entire form design may at any time be tested
in the real runtime mode by clicking on the "Runtime Test" toolbar button.

Basic Features
==============
- intuitive and user-friendly MDI interface;
- adjustable optional grid with step ranging from 4 pixels up to infinity;
- optional snap-controls-to-grid feature;
- control Z-ordering via bring-to-front/send-to-back toolbar buttons;
- optional lock-controls toggle to avoid accidental misplacement of controls by jerky
mouse movements;
- control copy/paste operations;
- VB-style Ctrl+arrowkey positioning and Shift+arrowkey sizing of controls unaffected
by the lock-controls toggle;
- VB-style cycling through the controls with the Tab key.

I hope you'll enjoy this new tool written entirely in, and for, FBSL. Each and every
of your observations, remarks, and suggestions will be most welcome.

Additions & Mods to Version Alpha as of January 22, 2007:
=====================================
1/ Added the ES_AUTOHSCROLL style to the "Caption" edit box to enter long strings (1Kbyte max.),
and the ES_NUMBER style, to the Left, Top, Width, Height edit boxes.
2/ Added code to "Case IDM_FRONT/BACK" to change the order of control creation to correspond
to the actual visual Z-order.
3/ Added status bar messages.
4/ Added the following hotkeys:
- Ctrl+Alt+C -> copy the selected control;
- Ctrl+Alt+V -> paste a copy of the control at the current cursor position;
- Ctrl+Enter -> apply style/caption/size/position changes.
5/ Added automatic emission of style constants which are not intrinsically recognized by FBSL.
Note: FMFD DOES NOT LIST NOR EMIT (ex)styles which have numeric values of 0 -- these (ex)styles
are usually used by Windows on default when no other (ex)styles are specified.

Mods to Version Alpha as of January 23, 2007
=============================
1/ Changed the output format of emitting the missing (ex)styles from block Const's to #Define's. This saves memory and makes execution faster, as suggested by Gerome.
2/ Changed the control handle dimensioning code from separate Dim statements to a multiline Dim statement. This adds some freelance flavor to automatically generated script templates, as suggested by Gerome ( ;) ) -- see the accompanying FMFDTest.fbs.

Please reload the zip!

Michael Lobko-Lobanovsky
Attachments
FMFDvA.zip
Version Alpha Mods as of January 23, 2007
(171.71 KiB) Downloaded 505 times
Last edited by Mike Lobanovsky on Tue Jan 23, 2007 12:45 am, edited 2 times in total.
User avatar
Mike Lobanovsky
FBSL Administrator
FBSL Administrator
 
Posts: 1823
Joined: Tue Apr 19, 2005 8:22 am
Location: Republic of Belarus

Re: FBSL Mini Form Designer Version Alpha!

Unread postby Gerome » Thu Jan 18, 2007 12:40 am

Dear Mike,

EXCELLENT JOB !
Very extrememy nicely done !
This is the most ever powerful job ever done in FBSL v3 !
Thanks a lot Mike !
Yours,

(¯`·._.·[Gerome GUILLEMIN]·._.·´¯)
:: Full SETUP w. HELP 05th of December 2011 ::
http://www.fbsl.net/setup/FBSLv3.exe [full v3.4.10 installation pack]
http://www.fbsl.net/setup/FBSLv3bin.zip [minimal upgrade to v3.4.10]
Laissons les jolies femmes aux hommes sans imagination. / Let us leave pretty women to men without imagination.(M.Proust)
The success is a defeat for the one who does not want to dance any more! (H.F. Thiefaine)
User avatar
Gerome
FBSL Administrator
FBSL Administrator
 
Posts: 3149
Joined: Sat Mar 12, 2005 9:06 pm
Location: Paris -- France

Unread postby taobert » Sat Jan 20, 2007 12:08 pm

Mini designer, maxi performance.
Try it out and you can't do without !

Thank you very much, Mike :D
User avatar
taobert
FBSL geek
FBSL geek
 
Posts: 318
Joined: Sun Oct 29, 2006 4:22 pm
Location: France (Nord)

Unread postby Gerome » Mon Jan 22, 2007 2:52 pm

Dear all,

taobert wrote:Mini designer, maxi performance.
Try it out and you can't do without !

Thank you very much, Mike :D


Mike has just updated a newest version, dated from 22nd of January 2007.
Please get this brand new version, use and abuse it!
Thanks Mike for your excellent and very productive efforts!
Yours,

(¯`·._.·[Gerome GUILLEMIN]·._.·´¯)
:: Full SETUP w. HELP 05th of December 2011 ::
http://www.fbsl.net/setup/FBSLv3.exe [full v3.4.10 installation pack]
http://www.fbsl.net/setup/FBSLv3bin.zip [minimal upgrade to v3.4.10]
Laissons les jolies femmes aux hommes sans imagination. / Let us leave pretty women to men without imagination.(M.Proust)
The success is a defeat for the one who does not want to dance any more! (H.F. Thiefaine)
User avatar
Gerome
FBSL Administrator
FBSL Administrator
 
Posts: 3149
Joined: Sat Mar 12, 2005 9:06 pm
Location: Paris -- France

Unread postby Gerome » Mon Mar 26, 2007 10:43 pm

Hi,

Hope we'll sooner see a newest version... :)
Yours,

(¯`·._.·[Gerome GUILLEMIN]·._.·´¯)
:: Full SETUP w. HELP 05th of December 2011 ::
http://www.fbsl.net/setup/FBSLv3.exe [full v3.4.10 installation pack]
http://www.fbsl.net/setup/FBSLv3bin.zip [minimal upgrade to v3.4.10]
Laissons les jolies femmes aux hommes sans imagination. / Let us leave pretty women to men without imagination.(M.Proust)
The success is a defeat for the one who does not want to dance any more! (H.F. Thiefaine)
User avatar
Gerome
FBSL Administrator
FBSL Administrator
 
Posts: 3149
Joined: Sat Mar 12, 2005 9:06 pm
Location: Paris -- France

Unread postby Helena_Return » Thu Mar 29, 2007 2:14 pm

really nice job Mike !!!

if you are ok i would like to work on it a little (with you of course)
i have lot of ideas now that fbsl support udt,etc...
a cool this for example is to allow user to save controls into file so
you can have differents button styles in the toolbox window for example
the same could be done for forms ;op

another cool thing could be an external file for saving constants instead of hard codding them (easier for updates)

as i say befor lot lot lot ideas for the ide :op
User avatar
Helena_Return
FBSL Administrator
FBSL Administrator
 
Posts: 62
Joined: Tue Mar 27, 2007 8:26 pm

Unread postby Gerome » Thu Mar 29, 2007 2:19 pm

Hello Helena,
Helena_Return wrote:really nice job Mike !!!

if you are ok i would like to work on it a little (with you of course)
i have lot of ideas now that fbsl support udt,etc...
a cool this for example is to allow user to save controls into file so
you can have differents button styles in the toolbox window for example
the same could be done for forms ;op

another cool thing could be an external file for saving constants instead of hard codding them (easier for updates)

as i say befor lot lot lot ideas for the ide :op


Mike has actually slowed down a bit his developments because he traversing some difficulties.
I possess all of his sources and I'm in contact with him once or twice a week...
If you have any requests, please send me PMs or E-mails :)
Yours,

(¯`·._.·[Gerome GUILLEMIN]·._.·´¯)
:: Full SETUP w. HELP 05th of December 2011 ::
http://www.fbsl.net/setup/FBSLv3.exe [full v3.4.10 installation pack]
http://www.fbsl.net/setup/FBSLv3bin.zip [minimal upgrade to v3.4.10]
Laissons les jolies femmes aux hommes sans imagination. / Let us leave pretty women to men without imagination.(M.Proust)
The success is a defeat for the one who does not want to dance any more! (H.F. Thiefaine)
User avatar
Gerome
FBSL Administrator
FBSL Administrator
 
Posts: 3149
Joined: Sat Mar 12, 2005 9:06 pm
Location: Paris -- France

Unread postby Helena_Return » Thu Mar 29, 2007 2:28 pm

no problem Gerome :op
User avatar
Helena_Return
FBSL Administrator
FBSL Administrator
 
Posts: 62
Joined: Tue Mar 27, 2007 8:26 pm

Unread postby Mike Lobanovsky » Thu Apr 12, 2007 9:02 am

OK Helena,

I'm really glad you are back and it's wonderful you are interested in this part of FBSL development. Please get the source script from Gerome, study it, and feel free to modify it in any way you like. I'm sorry the code is procedural -- it'll make the OOP ideas a little harder to implement. But I had procedural code samples from BCX and I didn't have much time to change them to OOP because I felt the need for a visual designer was too urgent and time-critical.

So go ahead and get the FSF code from Gerome too. It's very fragmentary but it's OOP-ed and can give you more ideas for further development.

Good luck! I'll jump into the boat again, hopefully soon, as soon as I resolve my personal problems.

Mike :)
User avatar
Mike Lobanovsky
FBSL Administrator
FBSL Administrator
 
Posts: 1823
Joined: Tue Apr 19, 2005 8:22 am
Location: Republic of Belarus


Return to FBSL v3 Editors

Who is online

Users browsing this forum: No registered users and 1 guest