[gtkada] Fwd: Hypertext widgets

Emmanuel Briot briot at ACT-Europe.FR
Mon Aug 13 15:04:55 CEST 2001


Jeff Creem writes:
 > You might be better off creating your own (perhaps based on the source code
 > from one of
 > these two widgets). Or, for limited clickable text with database searches
 > only (no inline images,
 > javascript, etc) you probably can just create one from scratch pretty easily
 > using GtkAda directly.


Indeed, unless you want a full HTML parser (including inline images,...), you
are better off writting your own. Basically, you could have a look at the GVD
sources, where the source editor was written from scratch.

It includes text highlighting (you simply want to highlight the hyperlinks,
probably), and a contextual menu that reads the identifier under the cursor (so
in GtkAda you would connect the button_press_event signal of the gtk_text
widget with your own procedure. This in turns checks whether the mouse was
clicked on a hyperlink or not).

Emmanuel




More information about the gtkada mailing list