Re: Gtk::Text widget



On Wed, 19 Jul 2000, Derek Simkowiak wrote:

> 	I think of my widget as structured in layers, like in the Gimp.
> The bottom layer is the gapped text buffer, the next layer up are the
> "Style" spans (which are optimal for scanner-based syntax highlighting).
> The third layer up will be overlapping tags, in a tree structure, once
> I've had time to write it.

Would it be possible to have multiple "Styles" applied to spans for things
like being able to have tooltips on the text inside the box? Eg, to display
information about C structures when holding a mouse over the reference.

This would be a useful general purpose extension too. Eg, writing help
documentation which has pop-up help to explain jargon.

Using multiple spans would also allow right clicking on text to bring
up a menu associated with that bit of text without having to try and
calculate where the text is currently being displayed in the text
widget.

If you're not interested in adding this, please let me know how I would
be able to assist in this (unless you feel it wouldn't be of sufficient
general purpose value).

--
  spwhite@chariot.net.au





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]