PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: WinFBE Visual Designer updates  (Read 1524 times)

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8822
  • Windows 10
    • PlanetSquires Software
WinFBE Visual Designer updates
« 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).
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8822
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Visual Designer updates
« Reply #1 on: January 26, 2019, 12:20:13 PM »

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.



Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8822
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Visual Designer updates
« Reply #2 on: January 27, 2019, 05:33:46 PM »

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.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8822
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Visual Designer updates
« Reply #3 on: February 03, 2019, 05:07:02 PM »

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.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8822
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Visual Designer updates
« Reply #4 on: February 03, 2019, 05:19:17 PM »

Update: I also have a draft form created for the StatusBar Editor. It is based on the one in FireFly.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Andrew Lindsay

  • Junior Member
  • **
  • Posts: 76
Re: WinFBE Visual Designer updates
« Reply #5 on: February 03, 2019, 07:26:46 PM »

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.
Logged

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8822
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Visual Designer updates
« Reply #6 on: February 04, 2019, 08:34:08 AM »

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.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8822
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Visual Designer (SnapLines)
« Reply #7 on: February 05, 2019, 07:58:41 PM »

Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Eddy Van Esch

  • Senior Member
  • ***
  • Posts: 246
  • FF3 User
    • DevOTechS
Re: WinFBE Visual Designer (SnapLines)
« Reply #8 on: February 06, 2019, 05:05:43 AM »

Amazing! It reminds me of the 'Snap to geometry' feature in sketchers of 3D solid modelling software packages! :)
Logged
Eddy

Joerg Buckel

  • Junior Member
  • **
  • Posts: 81
  • FF3 and WinFBE+WinFBX User
Re: WinFBE Visual Designer updates
« Reply #9 on: February 06, 2019, 07:45:28 AM »

Hello Paul
This is a nice thing and clearly facilitates the alignment of the controls.  ;D
Logged
Greeting from Germany

Joerg

raymw

  • Senior Member
  • ***
  • Posts: 262
Re: WinFBE Visual Designer updates
« Reply #10 on: February 07, 2019, 05:53:33 AM »

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)
Logged

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8822
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Visual Designer updates
« Reply #11 on: February 07, 2019, 08:52:29 AM »

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.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

raymw

  • Senior Member
  • ***
  • Posts: 262
Re: WinFBE Visual Designer updates
« Reply #12 on: February 07, 2019, 10:14:24 AM »

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.
Logged

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8822
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Visual Designer updates
« Reply #13 on: February 09, 2019, 05:20:57 PM »

- 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.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8822
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Visual Designer updates
« Reply #14 on: March 03, 2019, 12:21:39 PM »

I just about have the StatusBar Editor finished. I was busy this past work and didn't get the statusbar stuff finished as fast as I had hoped. On a positive note, a lot of the StatusBar Editor code can be used in the upcoming ToolBar Editor that will be next.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer
Pages: [1] 2