Repaint on Restore

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #37420
    Kuremon
    Participant

    Hello,

    I am using the latest version of AlphaSkins (v12.03) with the skin Mint.

    In my program, i have a event on OnPaint which draws all the data (Line, Arc, Polygon,…) on a form.

    When I minimize my application and then restore it. The OnPaint Event is called about 4 times in row. It looks like flicks.

    It seems AlphaSkin refresh the interface several times in row and it seems to be linked with the focus.

    When the main window loses or gets the focus, it is refreshed.

    I have to specify two things.

    1) It occurs only with the SkinManager's property ExtendedBorders set to false. With extended borders, there is no problem.

    Besides, with extended borders, by doing the same operation (Minimize->Restore), about one times in ten, only the border is displayed.

    The inside contents is not. The operation has to be done one more time so it is displayed correctly.

    2) This problem doesn't occur on WinXP but occurs on Windows 7 or 8. As my development platform is WinXP, I can not investigate the problem.

    Do you have any idea ? Any way to prevent this phenomenom to occur ?

    #56435
    Support
    Keymaster

    Hello

    I will try to solve it in the v12.04 today or tomorrow.

    #56499
    Kuremon
    Participant
    'Support' wrote:

    Hello

    I will try to solve it in the v12.04 today or tomorrow.

    Hello,

    Let me just confirm one thing.

    I tried with the new versions (12.04 and 12.05) but the problem is not solved.

    Is it normal ? Are you still working on it?

    #56514
    Support
    Keymaster

    Hello

    I have added some changes in latest versions for solving this issue.

    I can't repeat it in the test anymore. Could you show your test-app with the problem, please?

    #56520
    Kuremon
    Participant
    'Support' wrote:

    Hello

    I have added some changes in latest versions for solving this issue.

    I can't repeat it in the test anymore. Could you show your test-app with the problem, please?

    My application is very big, too big to send anything.

    I don't know if there is a link but my application is as follows:

    A main form is the architecture of the application with differents panels and tabs. And in the main panel, the center panel, I dock another form.

    Data are drawn on this second form, this docked form, directly on it, no panel on it. This second form is in another package.

    Both the main form and the second one have a SkinManager and SkinProvider.

    I can send DFM if you think it can help.

    I'll continue to investigate on my own.

    #56535
    Support
    Keymaster

    Yes, Dfm file may be useful. Also some screenshots may be useful too.

    #56541
    Kuremon
    Participant
    'Support' wrote:

    Yes, Dfm file may be useful. Also some screenshots may be useful too.

    Here's the DFM files of the two forms I spoke before.

    I also added a video that shows the problem.

    As you can see, by clicking on the software, the software gets the focus, the drawing is refreshed.

    By clicking on another window, the software loses the focus, the drawing is refreshed.

    By clicking on the minimize button, the drawing is refreshed and then the software's window is reduced.

    By restoring the window, there is 3, sometimes 4 refresh in row.

    With extended borders, none of this four refresh bug occur.

    #56547
    Support
    Keymaster

    Thank you

    Some controls are not installed in my system, I'm not able to make a test-app by myself.

    Can you try to make a test-application based on these forms, please?

    #56561
    Kuremon
    Participant
    'Support' wrote:

    Thank you

    Some controls are not installed in my system, I'm not able to make a test-app by myself.

    Can you try to make a test-application based on these forms, please?

    Creating a simple application based on this form is quite complicated

    But the same phenomenom occurs with the Viewer Version of my application.

    The main form is different but the architecture is similar.

    I attached below the viewer's installer (20170501_1206_CSI6VIEWER.iso). You just have to unzip the file and then run the installer. This viewer is not so big.

    Once the installation is complete, just run CSIEDAPCBViewer.exe. I attached data (panel-1v5.pcbfile) so you can see the bug I described in the video I sent before.

    I also inserted the DFM files of the two forms used with this viewer.

    The main form (ActivePCBDesignFormUnit.dfm) and the one where data are drawn on (pcbdesignformunit.dfm).

    I said before that this problem occurs on window 7 and 8.

    Actually it was wrong, it occurs only on Window 7 but not on 8 or XP and I haven't try on windows 10 yet.

    Sorry for this complicated configuration.

    #56566
    Support
    Keymaster

    Thank you for the application.

    I have tested it several days under several systems.

    I see that form is repainted once after restoring, but repainting procedure has a strange blinking.

    This blinking may be repeated without minimizing/restoring, just press the “Zoom fit” button (look attached video in Exe).

    Maybe I'm wrong, but I think, something with repainting of the PCB is not good…

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