- This topic has 9 replies, 2 voices, and was last updated 7 years, 6 months ago by Support.
-
AuthorPosts
-
April 5, 2017 at 6:02 am #37420KuremonParticipant
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 ?
April 6, 2017 at 11:38 am #56435SupportKeymasterHello
I will try to solve it in the v12.04 today or tomorrow.
April 14, 2017 at 12:17 am #56499KuremonParticipant'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?
April 18, 2017 at 1:05 pm #56514SupportKeymasterHello
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?
April 20, 2017 at 9:34 am #56520KuremonParticipant'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.
April 22, 2017 at 1:43 pm #56535SupportKeymasterYes, Dfm file may be useful. Also some screenshots may be useful too.
April 25, 2017 at 1:56 am #56541KuremonParticipant'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.
April 28, 2017 at 12:19 pm #56547SupportKeymasterThank 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?
May 1, 2017 at 4:54 am #56561KuremonParticipant'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.
May 10, 2017 at 6:10 am #56566SupportKeymasterThank 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…
-
AuthorPosts
- You must be logged in to reply to this topic.