Need widget to edit label text
- From: The Surprises <thesurprises1 attbi com>
- To: gtk-list gnome org
- Subject: Need widget to edit label text
- Date: Wed, 4 Dec 2002 14:13:10 -0800
Before I dive into coding one, does anyone have any code that allows one
to edit the text of a label widget? The user can double click on the
label, and it will magically convert to a text entry that the user can
edit, then when the user hits return, it magically turns back into a
label.
I've started to code one up, but am running into issues. I have an
hbox, with a label on top, and a set of buttons beneath. The label is
wrapped into an EventBox so I can grab button press. Within my button
press handler, I get the eventbox's parent (which is the toplevel hbox),
then I destroy the event box, create a GtkEntry widget, and pack the
entry widget into the parent hbox. This works, but the only problem is
that the entry box shows up below the set of buttons in my hbox instead
of where the label previously was. I tried both
gtk_box_pack_(start|end) with same results. Is there any way I can pack
at the top of the hbox?
Thanks,
Jason
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]