Gtk::Entry, how to get the cursor coordinates





I need a widget-relative x and y coords of the cursor, or even screen absolute coordinate of it I've try trough the associated Pango::Layout, using get_cursor_pos, get_cursor_weak_pos. get_cursor_strong_pos. As documentation say, i've convereted the Entry index in Pango index (tha value remain the same).

But i only get "Rectangles" structs with all zero values.


Every help is appreciated.

Angelo Dureghello



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]