Latest version v14.18 problems

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #38188
    JM-DG
    Participant

    Latest version v14.18 hasn't been a good update for my project. :/

    – Now most of my windows appear invisible when shown. (My windows have a windows borderStyle set to bsNone)

    Exemples:

    u96Kihi.png

    W341zJW.png

    – Windows positionning, sizes & constraints are now inconsistent at run-time.

    I use an ini files to remember width, height, top, left of my windows.

    There were none of these problems last releases.

    #59209
    Support
    Keymaster

    Hello

    Can you help me to repeat this issue?

    I'm trying to make a test-app with such bug, but can't, unfortunately.

    #59217
    JM-DG
    Participant
    'Support' wrote:

    Hello

    Can you help me to repeat this issue?

    I'm trying to make a test-app with such bug, but can't, unfortunately.

    I'll try to make a demo with the problem replicated. So far, no success.

    Maybe caused by this recent change??: Solved issue with a form disappearing after showing.

    #59223
    Support
    Keymaster
    'JM-DG' wrote:
    Maybe caused by this recent change??

    I think, yes, this issue is linked with latest changes.

    I need to know how to repeat the issue for fixing it.

    #59234
    JM-DG
    Participant
    'Support' wrote:

    I think, yes, this issue is linked with latest changes.

    I need to know how to repeat the issue for fixing it.

    Hi!

    I was able to reproduce the “Windows positionning, sizes & constraints are now inconsistent at run-time” problem I mentionned.

    There's a 1 pixel increase in height every time I restart the application.

    Also the constraint 170 does not seem to always stay true: I can resize down to 169 on first launch? When I first launch at => 172 the constraint seems to be back.

    It may appear like not much, but in my application it is important that every windows sit tight at 170 + (n * 10) because I have a “snapping system” which makes the problem more apparent.

    It was ok last version.

    I have attached a simple demo.

    As for the visibility problem, I'm still working on making a simple demo with the problem. (It's hard to reproduce on a new application but it happens on my main application every time)

    #59236
    Support
    Keymaster

    Thank you for the project. I have sent a patched file by private message, please try it.

    #59238
    JM-DG
    Participant
    'Support' wrote:

    Thank you for the project. I have sent a patched file by private message, please try it.

    The patch file you sent me seems to have fixed completely the “size” problem. :a7:

    I'll try to find some time tonight to pin down the visibility problem remaining.

    #59240
    JM-DG
    Participant

    Update 1: When I comment out the usage of the procedure UpdateLayerVisibility() from sVclUtils.pas all the windows from my project behave correctly (visible).

    Update 2:

    It seems like the lines causing some of my windows not to draw are the one using the cflags constant in the UpdateLayerVisibility procedure.

    Code:
    SetWindowPos(Handle, 0, 0, 0, WidthOf(R), HeightOf(R) – 1, cFlags);
    SetWindowPos(Handle, 0, 0, 0, WidthOf(R), HeightOf(R) + 1, cFlags);

    When passing 0 as flag, the visibility of my windows are ok (but it fucks up positionning).

    Code:
    SetWindowPos(Handle, 0, 0, 0, WidthOf(R), HeightOf(R) + 1, 0);

    Update 3: Yes!!!! Successfully reproduced the problem in a simple demo. Coming soon.

    #59241
    JM-DG
    Participant

    To reproduce:

    Any new window with no constraints (minHeight or minWidth) & having a border set to bsNone.

    If your mouse over the window, it will repaint itself.

    #59242
    TAZ
    Participant

    For curiosity sake, I downloaded the project. I then ran JM's compiled exe and verified that the second window background is missing. You have to move the mouse over for it to show.

    I then loaded the project into my Delphi IDE and compiled it. Then ran the exe from (1) the IDE and (2) as a stand alone and the problem did NOT occur. The second window background appeared when called.

    Not sure if this helps.

    Windows 7 Ultimate, Delphi 10.2.3, AC 14.18

    #59243
    JM-DG
    Participant
    'TAZ' wrote:

    For curiosity sake, I downloaded the project. I then ran JM's compiled exe and verified that the second window background is missing. You have to move the mouse over for it to show.

    I then loaded the project into my Delphi IDE and compiled it. Then ran the exe from (1) the IDE and (2) as a stand alone and the problem did NOT occur. The second window background appeared when called.

    Not sure if this helps.

    Windows 7 Ultimate, Delphi 10.2.3, AC 14.18

    So it would be a Delphi7 problem only? <_<

    #59244
    TAZ
    Participant

    I have attached my exe. Did not change any code.

    #59245
    Support
    Keymaster

    Thanks for the demo.

    The issue is not repeated with latest versions of the Delphi.

    I will think how to improve it in the neareast release.

    #59248
    JM-DG
    Participant
    'Support' wrote:

    Thanks for the demo.

    The issue is not repeated with latest versions of the Delphi.

    I will think how to improve it in the neareast release.

    With some tests, I realised that it can be as simple as simply removing the “SWP_NOREDRAW” flag from the cFlags constant.

    I dunno if it's a good solution though.

    #59253
    Support
    Keymaster

    Yes, I have found the same solution rolleyes.gif

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.