Page Index Toggle Pages: [1] 2 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) All arrow and box lines drawn with incorrect width after a Windows Update (Read 10880 times)
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 125
Location: England
Joined: Oct 23rd, 2006
All arrow and box lines drawn with incorrect width after a Windows Update
Oct 14th, 2021 at 1:48pm
Print Post  
After the following Windows updates in seems that any arrow lines and box borders without a specified width are drawn with the wrong width. Even the border around the +/- buttons is affected.

KB890830 - Malicious software removal tool (probably not the culprit!) and
KB5006670 - Cumulative update for Windows 10 21H1 x64 Systems

The software has not changed in any way - I just did the update. See the attached file  to see what has happened.

DavidL
  

BeforeAndAfter.png ( 19 KB | 94 Downloads )
BeforeAndAfter.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #1 - Oct 14th, 2021 at 2:33pm
Print Post  
Indeed, it happens on our end too. Apparently GDI's so called cosmetic pens (with zero width) no longer work. Before KB5006670 they used to draw 1-pixel wide lines regardless of graphics unit and zoom level.

For time being you could set some global style properties as below to fix border lines (and will have to update them after zoom level changes if you don't want zooming to scale line widths). For other graphics elements you might have to set properties on individual items.

diagram.ShapeNodeStyle.StrokeThickness = 0.1;
diagram.DiagramLinkStyle.StrokeThickness = 0.1;

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 125
Location: England
Joined: Oct 23rd, 2006
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #2 - Oct 14th, 2021 at 4:32pm
Print Post  
Many thanks.
I also had to add

flowChart.DiagramLinkStyle.HeadStrokeThickness = 0.1;

and do the following to fix up older files after reading (NOTE: BlackPen has a thickness of 0.1f)

foreach (var node in flowChart.Nodes)
node.Pen = BlackPen;

foreach (var link in flowChart.Links)
{
link.Pen = BlackPen;
link.HeadPen = BlackPen;
}

The next thing that I can't seem to fix is the blocky +/- buttons. Do you have a fix for that?
« Last Edit: Oct 15th, 2021 at 7:52am by David Long »  

BlobbyPlusMinusButtons.PNG ( 7 KB | 95 Downloads )
BlobbyPlusMinusButtons.PNG
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #3 - Oct 14th, 2021 at 5:36pm
Print Post  
The only way I can find in source code is overriding DrawManipulators, in case you are using a custom node type. We'll be releasing a fix for this next week anyway.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 125
Location: England
Joined: Oct 23rd, 2006
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #4 - Oct 15th, 2021 at 9:36am
Print Post  
I look forward to the new release. Two questions...

Will the new release fix all the problems or will we still need to add all the lines of code previously referred to?

Our subscription ran out in 2016. I assume that we will need to purchase a new one.

DavidL
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #5 - Oct 15th, 2021 at 10:11am
Print Post  
We have implemented our own zero-width pens support here -
https://mindfusion.eu/_beta/fcnet68.zip

You shouldn't need to use the global styles workaround with that.

We won't be able to patch versions from 2016, but if you have license with source code we could send you the diffs to merge.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 125
Location: England
Joined: Oct 23rd, 2006
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #6 - Oct 15th, 2021 at 1:20pm
Print Post  
We have a licence without source code so a renewal of the licence would be required.

I will try out the attached version to see if it works OK

DavidL
  
Back to top
 
IP Logged
 
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 125
Location: England
Joined: Oct 23rd, 2006
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #7 - Oct 15th, 2021 at 2:44pm
Print Post  
Software checks out OK. Look forward to release next week. Did find one glitch, though  - a downward facing arrow with a thick border.

DavidL
  

ArrowWithThickBorder.PNG ( 3 KB | 85 Downloads )
ArrowWithThickBorder.PNG
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #8 - Oct 15th, 2021 at 3:58pm
Print Post  
We might have missed adjusting some System.Pen constructor call. We could not reproduce that with built-in Arrow3 shape though. Could you post the code you use to initialize that arrow?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #9 - Oct 15th, 2021 at 4:02pm
Print Post  
Nevermind, we were testing with ShapeOrientation, but now found some RotationAngle values lead to that.
  
Back to top
 
IP Logged
 
Viev
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 15
Location: Australia
Joined: Jan 3rd, 2015
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #10 - Oct 16th, 2021 at 12:02pm
Print Post  
I also had this problem. I fixed most things but can't work out how to get the arrows of a link to touch the line/outline of the shape it connects to rather then overlap the line (as attached).

Any assistance on how to fix this most welcome.
  

MindfusionArrows.png ( 25 KB | 86 Downloads )
MindfusionArrows.png
Back to top
 
IP Logged
 
Viev
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 15
Location: Australia
Joined: Jan 3rd, 2015
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #11 - Oct 16th, 2021 at 12:09pm
Print Post  
...solved it. Need to set link's HeadShapeSize and Pen.Width
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #12 - Oct 18th, 2021 at 6:45am
Print Post  
David Long wrote on Oct 15th, 2021 at 2:44pm:
Software checks out OK. Look forward to release next week. Did find one glitch, though - a downward facing arrow with a thick border.


New build here should fix it -
https://mindfusion.eu/_beta/fcnet68.zip

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


I Love MindFusion!

Posts: 15
Location: Australia
Joined: Jan 3rd, 2015
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #13 - Oct 18th, 2021 at 9:47am
Print Post  
Slavcho, can you let me know which parameter sets the width of the line for the selection box (as attached). It has gone thick as well.
  

Marqui.png ( 13 KB | 89 Downloads )
Marqui.png
Back to top
 
IP Logged
 
Viev
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 15
Location: Australia
Joined: Jan 3rd, 2015
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #14 - Oct 18th, 2021 at 10:10am
Print Post  
...found it.

Diagram.Selection.Pen.Width

....determines the width of the selection box/rectangle.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 3 
Send TopicPrint