Text Input
| From: | Andrew Smith | Date: | Wed, 27 Nov 2002 10:57:28 +0000 |
| Subject: | Text Input | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-2745@lists.php.net to get a copy of this message | ||
Hello
More good news on the Win latest release. The "uncritical" error (ie no harm
caused) when using glade:
Gtk-CRITICAL **: file gtkaccelgroup.c: line 188 (gtk_accel_group_attach):
assertion `g_slist_find (accel_group->attach_objects, object) == NULL'
failed
seems to have disappeared.
I am now playing around with GtkText, the so called "broken" widget. The
manual says:
There is also a problem with the linewrap when the GtkText widget is
utilised under Windows, causing it to display 'little black boxes' at every
soft wrap. You can get around this by using PHP's wordwrap() function to
create a line-end within the GTK line-end, but bear in mind that PHP uses a
given number of characters to determine the length of the line, whereas GTK
uses pixels to configure the relationship between the font size, the
line-end, and the container's border.
That works fine for displaying text in the Text box (I use Courier so that
it is fixed width, wrapped at a certain character), but what about when
users want to edit the text in those boxes? When they get to the end of the
line it gives a little black box.
Is there any simple way of allowing "big" text editing? Otherwise I will
have to try and create some nasty code to catch the characters as they are
being typed and do a manual line break when the end of the line is reached.
Ouch!
BTW.. what is the ETA on GTK 2.0?
--------------------------------------
Andrew Smith
The Blue Box Cape Town
andrew@bluebox.co.za
021 683 6017 / 082 785 1313