error in pangoLayout->index_to_pos() ?
- From: thom_schu gmx de
- To: gtk-list gnome org
- Subject: error in pangoLayout->index_to_pos() ?
- Date: Wed, 28 Feb 2007 19:53:40 +0100
Hi there,
Im trying to implement something like a TextEntry.
So I need to compute the current position of the cursor.
For this Im using PangoLayout::index_to_pos().
Everything works fine, as long as the string doesnt have
any special characters. (like ö, ä, ü, µ).
It seems like it doesnt work with characters which have a keyval
higher than 177.
Im building the string in the on_key_press_event with
text.insert(position, 1, event->keyval).
I have posted this question already in the gtkmm-list, but havent got an
answer yet. But since pangomm is only a wrapper, if there is an
error, it must be in the c library.
I also tried to use the function move_cursor_visually, but also this
doesnt work. For instance when I enter the letter "ä" many times,
Im getting the positions : 0, 2, 2, 6, 2, 8, 2, 10, 2, 12, 2 ........
but expected 0,1,2,3,4,5,6.....
thanks
thom
--
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: www.gmx.net/de/go/mailfooter/topmail-out
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]