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 10871 times)
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 #15 - Oct 20th, 2021 at 2:02pm
Print Post  
Do you have a release date for the new version?
DavidL
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #16 - Oct 20th, 2021 at 2:06pm
Print Post  
Today.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #17 - Oct 20th, 2021 at 2:28pm
Print Post  
We have just released actually -
https://mindfusion.eu/Forum/YaBB.pl?num=1634740003

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


I Love MindFusion!

Posts: 6
Joined: May 12th, 2020
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #18 - Oct 25th, 2021 at 12:37pm
Print Post  
All,

I have tried out the new fixes and it works for my shape nodes and the selection window, but I am still seeing thick lines for the grid when zooming. Am I am missing setting something here:

            page.GridColor = GRID_LINES;
            page.GridOffsetX = 0;
            page.GridOffsetY = 0;
            page.GridSizeX = _defaultHeight;
            page.GridSizeY = _defaultHeight;
            page.GridStyle = GridStyle.Lines;
            page.ShowGrid = showGrid;

Thanks,
Steve
  

Screenshot_2021-10-25_082847.png ( 7 KB | 87 Downloads )
Screenshot_2021-10-25_082847.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #19 - Oct 25th, 2021 at 1:15pm
Print Post  
It seems we missed that case. New build here should fix that -
https://mindfusion.eu/_temp/gridstyle_lines.zip

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


I Love MindFusion!

Posts: 6
Joined: May 12th, 2020
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #20 - Oct 25th, 2021 at 2:14pm
Print Post  
Excellent, that did the trick.  Thanks for the super fast response!  Please let us know when this will be released.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #21 - Oct 26th, 2021 at 5:48am
Print Post  
Hi,

The bulk of fixes (some hundreds of Pen method/constructor calls) are already available in v6.8 we released last week. We won't be releasing an update only for the Lines grid style fix, but the assemblies from archive above should be stable to use. We could publish them to nuget if that will work for you. We'll probably release a 6.8.1 patch in a few weeks otherwise, when we collect a few more glitches to fix...

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


I Love MindFusion!

Posts: 6
Joined: May 12th, 2020
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #22 - Nov 1st, 2021 at 1:09pm
Print Post  
We are currently on 6.5.3. Do we need to update to the latest version to get these changes?  I am getting licensing issues with the files that are in the zip.

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


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #23 - Nov 1st, 2021 at 1:58pm
Print Post  
Hi,

Sadly we cannot afford to patch all past versions of our libraries when platforms break something for us (e.g. .NET, Java and browsers tend to do that every year or two in our experience). If you cannot move to v6.8 at this time, you will need to use the fixes shown in thread above.

For GridStyle.Lines specifically, you might be able to work around that by setting ShowGrid = false and drawing your own lines from DrawBackground event handler. Or possibly show the Diagram.LaneGrid instead, configured to match the alignment grid, and with various Style.*BorderPen widths set to a fractional mm value such as 0.1.

Alternatively, instead of keeping default millimeter unit and fixing line widths, you could try changing diagram.MeasureUnit to a smaller unit (say Point, WpfPoint, Pixel) and adjust the various size and length property values for the new unit.

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


I Love MindFusion!

Posts: 6
Joined: May 12th, 2020
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #24 - Nov 1st, 2021 at 2:02pm
Print Post  
Ok thanks for the response.
  
Back to top
 
IP Logged
 
Hugues J.
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Nov 3rd, 2021
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #25 - Nov 3rd, 2021 at 11:15am
Print Post  
We have the same issue but using an old version of Flowchart (6.5.1). Is there a way to get a fix for this issue please?

Note: We have a license with the source code.

Thanks,
Hugues
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #26 - Nov 3rd, 2021 at 11:42am
Print Post  
Hi,

Fixes from this thread should work for 6.5.1 too. Otherwise you could either move to v6.8, or patch the 6.5.1 code yourself. If you prefer the latter, replace the CreateGdiPen method in Common/Pen.cs with ones from attached zip, adding the target Graphics as parameter, and then fix compiler errors by passing target graphics as argument. Also find all references to System.Drawing.Pen constructor and replace them with calls to Utilities.NewPen, also in attached zip (that's for objects that don't have MindFusion.Drawing.Pen properties but draw directly with system pens).

Regards,
Slavcho
Mindfusion
  

Common.zip ( 1 KB | 214 Downloads )
Back to top
 
IP Logged
 
Hugues J.
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Nov 3rd, 2021
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #27 - Nov 3rd, 2021 at 3:15pm
Print Post  
Hi Slavcho,

I applied your changes to my 6.5.1 code and that works great, apart from arrow and anchor points.

Any idea?

Thanks,
Hugues
  

Image_1581.png ( 8 KB | 81 Downloads )
Image_1581.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #28 - Nov 3rd, 2021 at 3:32pm
Print Post  
Hi Hugues,

Check if you haven't missed pen constructor calls in AnchorPoint.Draw, DiagramItem.GetEffectivePen, DiagramLink.GetEffectiveHeadPen methods - replace them with Utilities.NewPen as well.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Hugues J.
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Nov 3rd, 2021
Re: All arrow and box lines drawn with incorrect width after a Windows Update
Reply #29 - Nov 3rd, 2021 at 4:10pm
Print Post  
Hi Slavcho,

You were right, I missed a few places. Everything seems to work ok now.

Thank you for your help!

Hugues
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 
Send TopicPrint