Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagram corruption (Read 3103 times)
Ktmr
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 24
Joined: Mar 27th, 2020
Diagram corruption
Oct 12th, 2021 at 11:44am
Print Post  
Hi,

I am using flowchart diagram in my project.  When I change windows displaying size from 100 % to 125 % , it occurs a corruption in diagram. Although the mouse is on the node, it does not detect it. When I click somewhere outside of the node, the node reacts as if I clicked on it.
Also, when I want to select the nodes in the diagram with the mouse, it repeats the diagram.

What should I do about this situation?

Thank you
Gizem
  

aa.png ( 62 KB | 93 Downloads )
aa.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Diagram corruption
Reply #1 - Oct 12th, 2021 at 11:56am
Print Post  
Hi,

Do you mean changing the scale while your application is running? I use 125% as default display scale, and can't see problems playing with the Demo project started on 125%.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Ktmr
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 24
Joined: Mar 27th, 2020
Re: Diagram corruption
Reply #2 - Oct 12th, 2021 at 12:19pm
Print Post  
No, I don't. When I change the scale while my application is running, there is no change. It breaks down after changing the scale to 125% and running it again.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Diagram corruption
Reply #3 - Oct 12th, 2021 at 12:25pm
Print Post  
What .NET and diagram versions are you using? Do our sample projects show the same problem on your end?
  
Back to top
 
IP Logged
 
Ktmr
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 24
Joined: Mar 27th, 2020
Re: Diagram corruption
Reply #4 - Oct 12th, 2021 at 12:45pm
Print Post  
.Net version 4.7.2

Diagram version v4.0.30319

I tried sample projects and I didn't have such a problem.

I am using lane grid with flowchart in my project.
Could the problem be caused by this?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Diagram corruption
Reply #5 - Oct 12th, 2021 at 1:09pm
Print Post  
Not likely related to the grid. What does the version attribute from screenshot show for you? "Runtime version v4.0.30319" is .NET's own runtime version.

Do you have any DPI awareness settings in application's manifest file?
https://docs.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awa...
  

Untitled_021.png ( 19 KB | 90 Downloads )
Untitled_021.png
Back to top
 
IP Logged
 
Ktmr
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 24
Joined: Mar 27th, 2020
Re: Diagram corruption
Reply #6 - Oct 12th, 2021 at 1:49pm
Print Post  
Sorry diagram version is 6.6.0.451

I changed main method in program.cs and the problem fixed.

    static class Program
    {
        [STAThread]
        static void Main()
        {
            // ***this line is added***
            if (Environment.OSVersion.Version.Major >= 6)
                SetProcessDPIAware();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }

        // ***also dllimport of that function***
        [System.Runtime.InteropServices.DllImport("user32.dll")]
        private static extern bool SetProcessDPIAware();
    }


Thank you so much

Regards,
Gizem
  
Back to top
 
IP Logged
 
Ktmr
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 24
Joined: Mar 27th, 2020
Re: Diagram corruption
Reply #7 - Oct 21st, 2021 at 5:33am
Print Post  
Hi,

Diagram links and node frames got thicker even though I made no changes in my application. It looks the same in the sample apps.

How can I fix this?

Thank you
  

image_001.png ( 198 KB | 95 Downloads )
image_001.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Diagram corruption
Reply #8 - Oct 21st, 2021 at 6:21am
Print Post  
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint