Re: prevent scrolling in GtkText



"Dugas, Alan" wrote:
Are you inserting your text, and/or moving the cursor, and/or deleting text
while frozen?  When I do so, I am able to "auto scroll" by checking if the
scrollbar is at it's limit prior to inserting addtional text.  If it is,
then after thawing the text widget I reset the vertical scrollbar adjustment
attached to the gtktext to display the new text at the bottom.  Otherwise
the text is left alone displaying the same text as it did prior to inserting
the addtional text.  Basically do everything while frozen.  Hope this helps.

                                -- Stupid Genius

Hello :)

Please , can you be more explicit, I'm inserting text in a freezed gtktex, and thawing
it doesn't scroll the window towards the insertesd position, so how do you

'...reset the vertical scrollbar adjustment
attached to the gtktext to display the new text ...'

I suppouse some action over, once the text is unthaw

GTK_ADJUSTMENT(GTK_TEXT(text)->vadj)

but which action,

Also, it is needed to proccess pending events related to insetion, before the above
described action is performed???
 

Thanks

-- 
Javier Ros Ganuza.
Dpto. Ingeniería Mecánica.
Univ. Pública de Navarra. Campus de Arrosadia s/n. 31006 Pamplona.
Tel. 34 948169307 Fax. 34 948169099
 

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