Re: GtkTextView sizing



On 20 Mar 2002, Havoc Pennington wrote:
 
Gary Benson <gary inauspicious org> writes:   

When you start the program, and don't touch anything, item 4 should be
wider, since it can be. I'd like for items 2 and 3 to have stretched
out the window so they weren't wrapped. Also, if you click in item one
and start typing, it scrolls itself so that parts of itself are
hidden.

Without getting into the big picture, the reason you get scrolling is
that the text view's vertical size request exceeds its allocation.
Which means you need to be sure it gets the whole vertical size
request.

Yeah, I was wondering if there is any way to override this behaviour.

Can anyone suggest how I might fix this, or do I need to rethink what
I want it to do?

To make this app nice I really think you need a custom widget for the
outline, rather than a lot of oddly juxtaposed prebuilt widgets. But
of course it'll be a lot more challenging and time-consuming to
implement that way. Just an editorial comment...

That's a shame, since I really wanted to build on GtkTextView (and avoid 
having to write an entire text editor!). Do you think I'll be unable to do 
what I want with collections of pre-existing widgets?

Cheers,
Gary

[ gary inauspicious org ][ GnuPG 85A8F78B ][ http://inauspicious.org/ ]




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