Placing widget on top of DrawingArea
- From: Lars Clausen <lrclause cs uiuc edu>
- To: gtk-list gnome org
- Subject: Placing widget on top of DrawingArea
- Date: Sat, 22 Feb 2003 21:34:44 -0600
Hi!
In Dia, we have the diagram displayed in a GtkDrawingArea widget.
Currently, we do text editing in the diagram by rendering our own cursor
and handling all events on our own. That's not a very practical approach
for several reasons.
Instead, I'd like to place an appropriate text editing widget (GtkTextView
+ GtkTextBuffer) on top of the text in the diagram, and get all the
standard editing for free. But GtkDrawingArea is not a container widget --
is there any reasonable way I can place the GtkTextView on top of the
GtkDrawingArea? It'll be removed as soon as the editing is done, e.g. when
anything else is done to the diagram.
Thanks in advance,
-Lars
--
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| HÃ¥rdgrim of Numenor
"I do not agree with a word that you say, but I |----------------------------
will defend to the death your right to say it." | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire | what's with the handbasket?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]