PlanetSquires Forums

Support Forums => PlanetSquires Software => Topic started by: Paul Squires on December 10, 2017, 03:34:37 PM

Title: Visual Designer update
Post by: Paul Squires on December 10, 2017, 03:34:37 PM
Here is another visual designer update post.

A tremendous amount of work complete on the internal engine that handles the creation and design of forms and controls. The PropertyList has been started as you can see in the attached animated gif. Likewise, the cut/copy/paste functionality for controls is complete and works very well.

The solid base is making it making is a lot easier to add functionality faster than I could previously. Next step will be to complete the PropertyList and then flush out all of the controls and their associated properties.

Code generation is still a ways off.  :)
Title: Re: Visual Designer update
Post by: Klaas Holland on December 11, 2017, 07:57:13 AM
Looks nice.

Can you make a horizontal and a vertical red line when you add a new control to line up with the other controls?
Title: Re: Visual Designer update
Post by: Paul Squires on December 11, 2017, 12:45:16 PM
Quote from: Klaas Holland on December 11, 2017, 07:57:13 AM
Can you make a horizontal and a vertical red line when you add a new control to line up with the other controls?
That is definitely something that I hope to implement. I have seen it in other visual designers and I think it would be helpful in this one also.
Title: Re: Visual Designer update
Post by: Bruce Huber on December 11, 2017, 10:14:38 PM
WinFBE + its Visual Designer + WinFBX could well be the toolset that keeps FreeBASIC alive over the long term!

THANKS!!! Paul and Jose!
Bruce
Title: Re: Visual Designer update
Post by: Paul Squires on December 16, 2017, 06:01:19 PM
Quote from: Paul Squires on December 11, 2017, 12:45:16 PM
Quote from: Klaas Holland on December 11, 2017, 07:57:13 AM
Can you make a horizontal and a vertical red line when you add a new control to line up with the other controls?
That is definitely something that I hope to implement. I have seen it in other visual designers and I think it would be helpful in this one also.

I have been working on this... it's been fun so far. Interesting logic to ensure that the snap works correctly and that the proper closest control is identified to snap to.
Title: Re: Visual Designer update
Post by: Paul Squires on December 19, 2017, 04:34:32 PM
Here is another update. This one relates to the selection rectangle used to lasso/select controls. Latest versions of Windows do not play nice with drawing selection rectangles using GDI functions like DrawFocusRect when outputting to the Windows Screen DC. I have implemented a very nice looking, alpha blended, selection lasso that draws to a top level window with the WS_EX_LAYERED style. Works well and looks very smooth. Animated gif attached to you can see it in action.
Title: Re: Visual Designer update
Post by: Andrew Lindsay on December 19, 2017, 07:57:56 PM
That looks awesome.  I'd love to see something like that under my Christmas tree.