How to place text inside a shapefile for Nevron diagram


Author
Message
Kirk Kanjian
Kirk Kanjian
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
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


Replies
Kirk Kanjian
Kirk Kanjian
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
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
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
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


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search