PlanetSquires Forums
Support Forums => WinFBE - Code Editor and Visual Designer => Topic started by: Paul Squires on January 26, 2019, 11:39:38 AM
-
My goal for the next WinFBE update is a massive update to the visual designer portion of WinFBE. I'll use this thread to post the progress so you guys can express any opinions or features that you want (especially with the current already implemented controls).
-
I have modified the Label control to use SS_OWNERDRAW so that now we can position the Label text using the DrawText api via WM_DRAWITEM.
The new LabelAlignment options are now:
enum LabelAlignment
MiddleCenter = 1
MiddleLeft
MiddleRight
TopCenter
TopLeft
TopRight
BottomCenter
BottomLeft
BottomRight
end enum
I have also implemented "BackColorHot" and "ForeColorHot" properties that will display the Label using different color if the mouse is over the control. I am using double buffering in WM_DRAWITEM to ensure that the Label is flicker free.
-
The ListBox control has been modified to be fixed ownerdraw. This allowed me to implement properties: ItemHeight, BackColorHot, ForeColorHot, BackColorSelected, ForeColorSelected. This makes the ListBox control look a lot more modern.
-
Update: I am working on the feature "SnapLines". It is more powerful than the old style snap to grid. You see such a feature in Visual Studio whereby you are moving your control and various alignment lines will appear as the control approaches a nearby control's top or bottom, left or right side. When within a hit zone the control will then snap to the snap line. The control will then only move from that snap position once the user tries to move the control outside the hit zone again. The logic is a little complicated but I have the bare bones of it working.
-
Update: I also have a draft form created for the StatusBar Editor. It is based on the one in FireFly.
-
It sounds like things are really progressing well Paul. I appreciate the effort that you and Jose have made in providing this for the community. I only wish my work load would drop off so I could relax and spend some time coding.
-
Thanks Andrew, still lots of work to do but it is getting easier and easier because a lot of the hard work is now done. Once all of the native controls are added to the designer then we'll be in a good state to start to refine the process from creating an user application from start to finish to make it as smooth and intuitive as possible.
-
Snap Lines in action....
www.planetsquires.com\images\snaplines.gif (http://www.planetsquires.com\images\snaplines.gif)
-
Amazing! It reminds me of the 'Snap to geometry' feature in sketchers of 3D solid modelling software packages! :)
-
Hello Paul
This is a nice thing and clearly facilitates the alignment of the controls. ;D
-
Hi Paul, snap lines looks useful, but is it replacing snap to grid, or 'as well as'. If there is no snap to grid, how do you equally space, say, the initial row? (other than calculating/entering numbers)
-
I wasn't planning on having snap to grid. I will add the "Horizontal Spacing" and "Vertical Spacing" options that used to be in FireFly. Those functions allowed you to select a group of controls and space them evenly. That would be a useful addition.
-
Thanks, that should do it. Grids can e a bit awkward, in particular if you need to edit the screen later, e.g. add a few buttons - you need to re-space the grid.
-
- Added: 'Horizonal Spacing' menu option to horizontally space a selected group of controls.
- Added: 'Vertical Spacing' menu option to vertically space a selected group of controls.