Profile Picture

right-to-left support in annotations problem

Posted By vladimir@galil-eng.co.il 9 Years Ago
Author
Message
vladimir@galil-eng.co.il
Problem Posted 9 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 4 Months Ago
Posts: 4, Visits: 23
Hi,
I have a following problem with right-to-left support in annotations in Nevron Chart.
As you can see in the image below, words appear in reverse order in Hebrew phrase:
https://www.nevron.com/forum/uploads/images/68357347-abb0-47e8-adbb-1f7c.jpg
This happens only when I mix Hebrew and non-Hebrew text in annotation. With Hebrew text alone, everything looks fine.

I use Nevron .NET Vision 2012.1 for VS2010 and following code to create annotation:
  private NRectangularCallout CreateAnnotation(string text, NVisibleDataPointAnchor anchor, bool down)
   {
    NRectangularCallout annotation = new NRectangularCallout();
    annotation.Anchor = anchor;
    annotation.AlwaysInsideParent = false;

    annotation.ArrowBasePercent = 0F;
    annotation.ArrowLength = new NLength(10F, NRelativeUnit.ParentPercentage);
    float orientation = down ? 270F : 90F;
    annotation.Orientation = orientation;

    annotation.TextStyle.FontStyle = new NFontStyle(this.Font.Name, this.LayoutSettings.AnnotationFontSizeScreen);
    annotation.TextStyle.StringFormatStyle.TextDirection = TextDirection.RightToLeft;
    annotation.Text = text;
    annotation.FillStyle = new NColorFillStyle(Color.FromArgb(255, 255, 200));
    annotation.PositionMode = CalloutPositionMode.AlignToText;
    annotation.UseAutomaticSize = true;
    annotation.InteractivityStyle.Cursor.Cursor = Cursors.Hand;
    return annotation;
   }


Please help me to get things straight.
Thank you in advance,
Vladimir Bershadsky



Nevron Support
Posted 9 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: Yesterday @ 1:54 AM
Posts: 3,054, Visits: 4,009
Hi Vladimir,
Do you use XML formatted texts in the annotation? If so you need to switch to simple text in order to display right to left languages. Let us know if this fixes the problem...

Best Regards,
Nevron Support Team



vladimir@galil-eng.co.il
Posted 9 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 4 Months Ago
Posts: 4, Visits: 23
Hi,

Thank you for answering.
I use simple text already (just checked this once more in debugger), so this is not an issue.
Please help.

Best regards,
Vladimir Bershadsky.






Similar Topics


Reading This Topic