Profile Picture

How to place text inside a shapefile for Nevron diagram

Posted By Kirk Kanjian 4 Years Ago
Author
Message
Kirk Kanjian
Problem Posted 4 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 8, Visits: 18
Hi,
I am using Nevron Nthin Diagram control and the text on the shapefile is getting cut off when displayed.
I want to know how can i make a text fit to the shapefile without getting cutting off so it sits at the center of the shapefile and takes height and width as per the space available.

I am using the following code to manipulate the text on the shapefile.

       Dim s as Nshape
       Dim textSize As Single
       textSize = 10
       Dim textStyle As New NTextStyle
       textStyle = s.ComposeTextStyle()
       textStyle.FontStyle = New NFontStyle("Arial", textSize)
       NStyle.SetTextStyle(s, textStyle)

Please find below the image which shows the text in the shapefile is cut off.
https://www.nevron.com/forum/uploads/images/4aa7d1e6-4f8f-449d-a349-4887.jpg



Nevron Support
Posted 4 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 8 minutes ago
Posts: 3,054, Visits: 4,009
Hello Kirk,

Thank you for the screenshot, but we don't see the clipped text. Can you please make a screenshot of the whole browser window and then mark the shape whose text is clipped so that we can easily see it?


Best Regards,
Nevron Support Team



Kirk Kanjian
Posted 4 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 8, Visits: 18
Hello,
Below are 2 images. The first shows the size of the shape does not matter. The text is being cut off. I have experience this in Crystal Reports. It happen there when you have to define the Line Spacing. If that is defined smaller than the font size, it gets cut off. I am unable to find the same function in the diagram control.
The second image is the way it looks in the actual application.
Please let me know if any additional information will help.
Thanks,
Kirk
https://www.nevron.com/forum/uploads/images/76f777a7-b030-494d-b351-6fc7.jpg

https://www.nevron.com/forum/uploads/images/aa56ce39-f48e-4c67-9056-d93f.jpg


Nevron Support
Posted 4 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 8 minutes ago
Posts: 3,054, Visits: 4,009
Hello Kirk.

Thank you for the screenshots. Have you tried making the font size smaller? In your code from the first post you use font size of 10pt, please try using font size of 8pt and let us know if it makes any difference.


Best Regards,
Nevron Support Team



Kirk Kanjian
Posted 4 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 8, Visits: 18
Hello,
A smaller font size does show the entire character, however it is not readable under the normal view.

Nevron Support
Posted 4 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 8 minutes ago
Posts: 3,054, Visits: 4,009
Hello,

We recommend you scale up the whole diagram, for example by making all shapes 20% larger and increasing the spacing between them accordingly.


Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic