[MonoDevelop] RichTextBox for GTK#

Daniel Hughes trampster at gmail.com
Wed Aug 8 02:26:28 UTC 2012

It is possible to use a GTK TextView to display text with links and
different fonts and colors and sizes. To do so you need to add TextTags to
your buffer http://developer.gnome.org/gtkmm/stable/classGtk_1_1TextTag.html

Tomboy notes and Wide Margin do this so you could how they have done it if
you need examples.

Daniel Hughes

On Tue, Aug 7, 2012 at 7:39 PM, Abhi <arup281 at gmail.com> wrote:

> Hello,
> is there any Richtextbox alternative for Monodevelop's GTK# widget?
> actually Visual Studio has one, i want something like this for my program.
> my program shows web search result from Bing (using Bing search API from
> Azure marketplace) and display those results in a richtextbox under visual
> studio.
> display format is:
> Title: <result title>
> URL: <result url>
> here Url displays as hyperlink (blue color) and when user click this
> hyperlink it opens in browser.
> Here is the code i wrote for richtextbox under visual studio:
> *foreach (var result in webResults)
>                     {
>                         richTextBox1.Text = richTextBox1.Text +
> (result.Title + " \nURL: " + result.Url + "\n\n");
>                     }*
> but there's only textview widget in GTK# and it can't handle richtext
> properly, i mean it can show both title and url, but url displaying as
> plain text, not as hyperlink like richtextbox.
> so i need some help. is there any way to format textview so that it can
> show URL as hyperlink just like richtextbox of Winform app? i'm a new user
> of monodevelop, so little help will be nice for me. thanks in advance.
> Regards.
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20120808/8b2d2612/attachment.html>

More information about the Monodevelop-list mailing list