PlanetSquires Forums

Support Forums => PlanetSquires Software => Topic started by: Paul Squires on August 26, 2018, 09:47:14 PM

Title: WinFBE Suite 1.7.6 (August 26, 2018)
Post by: Paul Squires on August 26, 2018, 09:47:14 PM
Version 1.7.6 (August 26, 2018)
- Added: Grab handles for locked controls/form now show using red color.
- Added: BackColorHot property for Button controls.
- Fixed: Label mouse double click caused a GPF.
- Fixed: Changed all MID function code to use ** with CWSTR variables.
- Fixed: Align and/or Resize for groups of controls was not respecting the Locked status.
- Fixed: Center in form horizontally/vertically was not correctly accounting for High DPI resolutions.

https://github.com/PaulSquires/WinFBE/releases
Title: Re: WinFBE Suite 1.7.6 (August 26, 2018)
Post by: Joerg B. on August 27, 2018, 06:38:27 AM
Hi Paul

Thank you for the new updated version of WinFBE.

A quick question.

Can all properties of forms and controls be changed during runtime?
Title: Re: WinFBE Suite 1.7.6 (August 26, 2018)
Post by: Paul Squires on August 27, 2018, 06:55:49 AM
Yes, the properties can be changed at runtime. If there are any that you have trouble with them just let me know.
Title: Re: WinFBE Suite 1.7.6 (August 26, 2018)
Post by: Joerg B. on August 27, 2018, 08:26:23 AM
Hi Paul
Thank you for your feedback.

I like to define the properties for forms and controls in source code.

For example, with "Form1.MaximizeBox = False" or "Form1.MinimizeBox = False" I cannot see any changes.

It is always possible that the error is 80 cm in front of the monitor.  ;)

If all properties are definable during runtime, then I create a small project and test it. If I notice anything, I'll ask again.
Title: Re: WinFBE Suite 1.7.6 (August 26, 2018)
Post by: Paul Squires on August 27, 2018, 09:02:06 AM
Ah, in that case there are a number of Form properties that I only have coded for setting at Design time. I will complete that code so that the Form properties can be set at run time. You can see this is wfxForm.inc in the WinFormsX include folder. I believe I finished setting runtime properties for the other controls. I will have these additions for you in the next WinFBE update.
Title: Re: WinFBE Suite 1.7.6 (August 26, 2018)
Post by: Paul Squires on August 27, 2018, 10:07:05 AM
Actually, this has got me thinking that I should have an additional Event that the user can set. Something like "FormCreate". That would be called during the Form's Constructor so that the user could set additional properties at run time prior to the Form being created and shown. If you look at the Form code in your Form's source code file, you will see a long list for form metadata followed by the form creation code. A FormCreate event could patch into that form creation code via the Constructor. I'll consider this as it could be quite useful.
Title: Re: WinFBE Suite 1.7.6 (August 26, 2018)
Post by: Paul Squires on August 27, 2018, 02:08:24 PM
A few issues I have noticed with the 1.7.6 release:

- Changed: Control refresh/repaint called when Text property changed.
- Fixed: Regression: Ctrl/Shift Arrow keys not moving/resizing controls in designer.
- Fixed: Regression: GPF when ListBox row selection changed.

I will upload a new package 1.7.7 later today.

Title: Re: WinFBE Suite 1.7.6 (August 26, 2018)
Post by: Paul Squires on August 27, 2018, 02:44:42 PM
Quote from: Paul Squires on August 27, 2018, 10:07:05 AM
Actually, this has got me thinking that I should have an additional Event that the user can set. Something like "FormCreate". That would be called during the Form's Constructor so that the user could set additional properties at run time prior to the Form being created and shown. If you look at the Form code in your Form's source code file, you will see a long list for form metadata followed by the form creation code. A FormCreate event could patch into that form creation code via the Constructor. I'll consider this as it could be quite useful.

I have added a new Form Event called "Initialize". This event occurs before the form loads and before the form window is actually created. At this point, the form TYPE variable exists but the actual form window handle has not been created. It allows the programmer to be able to initialize the form via code.

''
''
Function Form1_Initialize( ByRef sender As wfxForm, ByRef e As EventArgs ) As LRESULT
   Form1.MaximizeBox = false
   Form1.MinimizeBox = false
   Form1.Text = "My Application"
   Form1.StartPosition = FormStartPosition.CenterScreen
   Form1.Width = 500
   Form1.Height = 250
   Function = 0
End Function


Title: Re: WinFBE Suite 1.7.6 (August 26, 2018)
Post by: Joerg B. on August 27, 2018, 03:05:03 PM
Quote from: Paul Squires on August 27, 2018, 02:44:42 PM
Quote from: Paul Squires on August 27, 2018, 10:07:05 AM
Actually, this has got me thinking that I should have an additional Event that the user can set. Something like "FormCreate". That would be called during the Form's Constructor so that the user could set additional properties at run time prior to the Form being created and shown. If you look at the Form code in your Form's source code file, you will see a long list for form metadata followed by the form creation code. A FormCreate event could patch into that form creation code via the Constructor. I'll consider this as it could be quite useful.

I have added a new Form Event called "Initialize". This event occurs before the form loads and before the form window is actually created. At this point, the form TYPE variable exists but the actual form window handle has not been created. It allows the programmer to be able to initialize the form via code.

''
''
Function Form1_Initialize( ByRef sender As wfxForm, ByRef e As EventArgs ) As LRESULT
   Form1.MaximizeBox = false
   Form1.MinimizeBox = false
   Form1.Text = "My Application"
   Form1.StartPosition = FormStartPosition.CenterScreen
   Form1.Width = 500
   Form1.Height = 250
   Function = 0
End Function

Hi Paul
I saw the list of metadata. I agree with you. It is a very useful extension.
I will gladly use the extension if you implement it.
I am already looking forward to the update. Thank you for your work.

Title: Re: WinFBE Suite 1.7.6 (August 26, 2018)
Post by: SeaVipe on August 27, 2018, 05:01:42 PM
Thanks, Paul, form _Initialize() will be very useful.