Setting default text on the TextTool

5 posts, 0 answers
  1. alessandro
    alessandro avatar
    8 posts
    Member since:
    Aug 2008

    Posted 17 Sep 2013 Link to this post

    Hi,

    I have a couple of simple questions about the TextTool in the RadImageEditor control (fantastic product indeed):



    1. is it possible to set some default text? I mean, I'd like the user to see a sentence I provide at runtime based on some variables instead of "enter text here"

    2. if the above is possible, any chances to make it read-only?



    Thanks in advance!

    Alessandro

  2. alessandro
    alessandro avatar
    8 posts
    Member since:
    Aug 2008

    Posted 20 Sep 2013 Link to this post

    I managed to get it working partially. Look at this code:


    Dim wb As WriteableBitmap = PictureDecoder.DecodeJpeg(yourPhotoStream)
    Dim tool = CType(Me.ImageEditor1.Tools(0), TextTool)
    tool.TextWrapping = TextWrapping.Wrap
    tool.FontSize = 24
    tool.TextPosition = New Point(350, 10)
    tool.FontFamily = New FontFamily("Times New Roman")
    tool.Foreground = New SolidColorBrush(Colors.Red)
    tool.Text = "Your default text"
    tool.IsSelected = True
     
    Me.DataContext = wb


    However, text wrapping and text position are not applied. Any help about this?

    Thanks!

  3. DevCraft banner
  4. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 23 Sep 2013 Link to this post

    Hello Alessandro,

    Thanks for writing and for your question and please excuse us for the delay with our answers.

    Officially, modifying these properties is not supported and we cannot guarantee that you will get the desired behavior if you set them. They are normally handled internally by the control.

    If you need this as an additional functionality you can submit a feature request and we will include this in our planning as we already do intend to upgrade RadImageEditor due to higher customer demand.

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  5. alessandro
    alessandro avatar
    8 posts
    Member since:
    Aug 2008

    Posted 23 Sep 2013 Link to this post

    Ok, thanks. I will submit a request. I think this is a very good control and getting some more granularity would be fun.

    Last question: how about localization? I am building an app in my home language (Italian) and I would need to translate built-in text into Italian words.



    Thanks in advance.

    Alessandro

  6. Todor
    Admin
    Todor avatar
    778 posts

    Posted 26 Sep 2013 Link to this post

    Hi Alessandro,

    We have included the localization in our plans for the next official release of RadControls scheduled for mid-Ocotober.

    If you have other questions, don't hesitate to write us back.
     
    Regards,
    Todor
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Back to Top
DevCraft banner