Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fabvit opened this issue Oct 10, 2023 · 9 comments
Open

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

fabvit opened this issue Oct 10, 2023 · 9 comments

Comments

@fabvit
Copy link

fabvit commented Oct 10, 2023

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
Copy link
Author

fabvit commented Oct 10, 2023

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

@fabvit fabvit closed this as completed Oct 10, 2023
@fabvit fabvit reopened this Oct 13, 2023
@fabvit
Copy link
Author

fabvit commented Oct 13, 2023

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.

@cnpack
Copy link
Owner

cnpack commented Oct 27, 2023

Oh, still no clue about the size changing.

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

@fabvit
Copy link
Author

fabvit commented Oct 27, 2023

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

@cnpack
Copy link
Owner

cnpack commented Nov 16, 2023

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?

@fabvit
Copy link
Author

fabvit commented Nov 16, 2023

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

@cnpack
Copy link
Owner

cnpack commented Nov 16, 2023

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

@fabvit
Copy link
Author

fabvit commented Nov 16, 2023

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

@cnpack
Copy link
Owner

cnpack commented Nov 18, 2023

Almost yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants