Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) update dll & label shape & background (Read 3787 times)
08804139
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 22
Joined: Oct 15th, 2018
update dll & label shape & background
Dec 23rd, 2018 at 1:15am
Print Post  
HI,
I update my version demo deversion dll 5 to dll 6 to activate the rule in my project.
a lot of problematic appearance:
+my demo does not work with microsoft edge
+always the rule is not displayed
+in the palette how can I display the designation below the image
+if I add a background how I can put its width and height change depending on the zoom (adjustment)
here is an example demo test (default.aspx and c#)
thanks
  

prob.rar ( 6 KB | 16 Downloads )
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 2033
Joined: Oct 19th, 2005
Re: update dll & label shape & background
Reply #1 - Dec 24th, 2018 at 8:22am
Print Post  
Hi,

The Controls sample project works correctly for me under Edge, showing Ruler control too if that's what you mean by rule. I could not compile your example, our developers ill check it later.

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


I Love MindFusion!

Posts: 22
Joined: Oct 15th, 2018
Re: update dll & label shape & background
Reply #2 - Dec 24th, 2018 at 12:40pm
Print Post  
Thank you very much for your answer.
but the demo does not work with microsoft edge and the rule does not show up in all the browsers I've used.
thank you for sending me the dll that you used in your test.
and how can I send you all my example because the maximum size in the joint ticket is 300 ko.
thank you in advance.
  
Back to top
 
IP Logged
 
08804139
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 22
Joined: Oct 15th, 2018
Re: update dll & label shape & background
Reply #3 - Dec 26th, 2018 at 4:56pm
Print Post  
Hi,

I managed to reduce the problem related to the display of the "Ruler" component.
but when I add an Accordion the display of the whole interface disappear (use Mindfusion.UI.web.dll)
here you find the error displayed in the browser.
How can I solve this problem?
Can you send me the Mindfusion.UI.web.dll.
I used dll found in your forum zip folder netdiag62.zip.

Thanks
  

error1_.png ( 25 KB | 19 Downloads )
error1_.png
error1_details.png ( 39 KB | 18 Downloads )
error1_details.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 2033
Joined: Oct 19th, 2005
Re: update dll & label shape & background
Reply #4 - Dec 28th, 2018 at 8:52am
Print Post  
Hi,

I've tried with the Samples/C#/Controls sample project installed with released 6.2 version from http://www.mindfusion.eu/NetDiagramTrial.zip. It might have some incompatibilities with older Mindfusion.UI.web.dll versions though - that assembly is from our WebForms pack, we'll try to release updated version in January.

Just in case Edge version on your system cannot display very large Canvas elements, try also setting the DiagramView.CanvasVirtualScroll property.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Lyubo
Senior Member
****
Offline


MindFusion team

Posts: 449
Joined: Jun 17th, 2010
Re: update dll & label shape & background
Reply #5 - Jan 2nd, 2019 at 12:58pm
Print Post  
Hi,

We built a new MindFusion.UI.WebForms.dll to resolve the incompatibility issues. We've uploaded a small sample project that shows a Diagram view with enabled Ruler, along with NodeList views, nested within an Accordion, referencing the new assemblies. You can download the sample here: https://mindfusion.eu/_samples/AccordionSample.zip. The updated assembly can be found in the References directory.

We tested the sample in various browsers, including MS Edge, and didn't notice problems. On another note, you may need to change the namespace/assembly declarations for the MindFusion.UI.WebForms.dll, as we noticed you used an old version, which uses the outdated MindFusion.UI.Web namespace.

Regards,
Lyubo

  
Back to top
 
IP Logged
 
08804139
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 22
Joined: Oct 15th, 2018
Re: update dll & label shape & background
Reply #6 - May 30th, 2019 at 9:59am
Print Post  
Hello  Roll Eyes
how can I specify how to save my XML file.
ie the links are saved in the XML file in order from left to right and not in drawing order
Huh
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 2033
Joined: Oct 19th, 2005
Re: update dll & label shape & background
Reply #7 - May 30th, 2019 at 10:28am
Print Post  
Hi,

Links are saved in XML in same order as the diagram.Links collection. Try sorting the collection before saving by whatever criteria you want, by calling the collection's Sort method - something like diagram.Links.Sort((l1, l2) => l1.StartPoint.X.CompareTo(l2.StartPoint.X));

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


I Love MindFusion!

Posts: 22
Joined: Oct 15th, 2018
Re: update dll & label shape & background
Reply #8 - May 30th, 2019 at 1:54pm
Print Post  
Can you explain to me better  Embarrassed
I used this code :
          canvasView.SaveToXml(_pathfile);
just i want the links in the XML file saved in order from left to right.


-<Links>
+<Link Version="2" Id="16" Class="std:DiagramLink">
-<Link Version="2" Id="18" Class="std:DiagramLink">
.......
  

Sans_titre.png ( 11 KB | 15 Downloads )
Sans_titre.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 2033
Joined: Oct 19th, 2005
Re: update dll & label shape & background
Reply #9 - May 30th, 2019 at 2:26pm
Print Post  
The elements under <links> will be created in the order defined by Diagram.Links collection, so you must sort it before saving if you want them in any particular order. In your case, call canvasView.Diagram.Links.Sort(...) before canvasView.SaveToXml.

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


I Love MindFusion!

Posts: 22
Joined: Oct 15th, 2018
Re: update dll & label shape & background
Reply #10 - Jun 7th, 2019 at 10:45am
Print Post  
thanks for your understanding.  Smiley
now i want to put a node in my diagram in a position defined also in relation to the rule component in meter
thank you in advance  Cheesy
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 2033
Joined: Oct 19th, 2005
Re: update dll & label shape & background
Reply #11 - Jun 7th, 2019 at 11:34am
Print Post  
Do you mean you need to convert coordinates from meters to diagram's MeasureUnit?
  
Back to top
 
IP Logged
 
08804139
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 22
Joined: Oct 15th, 2018
Re: update dll & label shape & background
Reply #12 - Jun 7th, 2019 at 1:00pm
Print Post  
Yes
in addition I want that I insert nodes in positions in meters with the code.
  
Back to top
 
IP Logged
 
08804139
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 22
Joined: Oct 15th, 2018
Re: update dll & label shape & background
Reply #13 - Jun 7th, 2019 at 1:16pm
Print Post  
for example
the number 1 presents the bottom of the diagram
the number 2 presents the background image that I want to position in the coordinates (0,0)
the number 3 presents the image that I want to position in the coordinates (7.4)
number 4 presents the image that I want to position in the coordinates (9.2)
  

diagramme.png ( 20 KB | 21 Downloads )
diagramme.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 2033
Joined: Oct 19th, 2005
Re: update dll & label shape & background
Reply #14 - Jun 10th, 2019 at 7:02am
Print Post  
From the image it looks like you've set ruler's unit to cm, while the diagram's default units are mm, so you could set matching coordinates by multiplying the cm positions you want by 10. Alternatively change diagram's measure unit to cm too (e.g. diagram.setMeasureUnit(MindFusion.Drawing.GraphicsUnit.Centimeter) from client side) and you won't need to convert position values, but then you might have to change various diagram default-values to specify them in cm.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint