cnwizards icon indicating copy to clipboard operation
cnwizards copied to clipboard

Delphi 11.3 - Form changes size when I compile/build.

Open fabvit opened this issue 2 years ago • 9 comments

Delphi 11.3 CnPack v1.2.7.1147_Unstable Build 2023.10.08

Form changes size when I compile/build. Just to further clarify, it changes visibly on the screen when I click Build or Compile.

If I disable CnWizard_loader from CnPack IDE External Wizard Management, all is working fine.

Steps to reproduce:

  1. launch Delphi
  2. open an existing project
  3. open in the IDE one of the project's forms
  4. chanage the form's width and heigth
  5. without saving the project just compile or build it

after the compile/build of the project you will notice that the form's width and heigth are restored to the original size of when you opened for the first time that form in the IDE

Please tell me if I can give some more bits of information to help debug this issue

thank you

P.S. I did not tested if this issue is also present in previous versions of CnPack

fabvit avatar Oct 10 '23 08:10 fabvit

SOLVED Un-Checking "Insert Compiling Time into Version Info (Delphi6 Above Onli)in CnPack IDE Enhancements Settings Vesion Enhancements solves the problem

fabvit avatar Oct 10 '23 15:10 fabvit

I have re-opened this issue since it would be very useful to use the CnPack "Insert Compiling Time into Version Info" feature without incurring in the forms being reiszed on compile/build.

In the mean time I am using a method of JCL library to read the compile timestamp from the PE header of the executable but it would be very nice to have a field of the VersionInfo structure with that timestamp.

fabvit avatar Oct 13 '23 06:10 fabvit

Oh, still no clue about the size changing.

We only insert some information into version and notify "Project changed" to Delphi IDE itself.

cnpack avatar Oct 27 '23 01:10 cnpack

Maybe is the "Project changed" notification to Delphi IDE itself that causes this issue. I have tested again, checking the"Insert Compiling Time into Version Info" checkbox in CnPack IDE Enhancements Settings Version Enhancements and the problem manifests again if you carefully follow the steps to reproduce in my original post. Un-checking that checkbox and the problem disappears...

fabvit avatar Oct 27 '23 14:10 fabvit

I can remove the "notify changed" action in CnWizards, but don't know the side effects. Do you check it whether exists in other Delphi? such as latest 12?

cnpack avatar Nov 16 '23 08:11 cnpack

At the moment I have only Delphi 11.3 Alexandria, I am sorry. Maybe you can add a checkbox to Enable/Disable the "notify changed" action in CnWizards, leaving Enabled as the default for new installations. In my opinion this is a softer approach relative to completely removing "notify changed" action in CnWizards. I understand that this new checkbox may become like opening a can of worms...

fabvit avatar Nov 16 '23 08:11 fabvit

Just find it does not work, no compile time inserted.

cnpack avatar Nov 16 '23 09:11 cnpack

I apologize for asking: what is that does not work? Removing the "notify changed" action in CnWizard?

fabvit avatar Nov 16 '23 10:11 fabvit

Almost yes.

cnpack avatar Nov 18 '23 06:11 cnpack