Delphi 11.3 - Form changes size when I compile/build.
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:
- launch Delphi
- open an existing project
- open in the IDE one of the project's forms
- chanage the form's width and heigth
- 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
SOLVED Un-Checking "Insert Compiling Time into Version Info (Delphi6 Above Onli)in CnPack IDE Enhancements Settings Vesion Enhancements solves the problem
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.
Oh, still no clue about the size changing.
We only insert some information into version and notify "Project changed" to Delphi IDE itself.
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...
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?
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...
Just find it does not work, no compile time inserted.
I apologize for asking: what is that does not work? Removing the "notify changed" action in CnWizard?
Almost yes.