Re: TAB operation in text widget



I just came up against the same wall.  Basically we need to be able to measure the characters in terms of pixels, is there a way to do this that I'm missing?

----- Original Message ----- 
From: "Philip Bunce" <pjb carmel com>
To: <gtk-list gtk org>
Sent: Friday, January 25, 2002 5:54 AM
Subject: TAB operation in text widget


> Hi All,
> 
> Does anyone know how to move the cursor in a text window forward a fixed number of pixels?
> 
> 
> I would like to produce columns of text in the text widget when using a proportionally-spaced font.
> I can easily find out the width of the current line in pixels, but then I need to move the set point forward
> to start the next column at the correct point. But all of the set point operations for a text widget seem to be
> measured in characters rather than pixels.
> 
> 
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list




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