Re: How to set initial size of TextView?



Eric Cashon via gtk-app-devel-list <gtk-app-devel-list gnome org> wrote:

 
Hi Chris,

Try getting the font height and base the textview height on that. If you 
use the font ascent you might have to pad it a little but it should give 
you a consistent value to size your textviews with based on font size. 


OK, thanks (and thanks for the sample code too).

I'm surprised that there's no easier way of doing it but if there
isn't then that's just the way it is I suppose.

-- 
Chris Green
ยท



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