Re: Strange problem with image and event box in Windows



I wrote:
I've got a strange behaviour of an image in an event box in Windows.

I digged into this a bit more and the problem seems to be related to my usage of Gtk2::Image->set_size_request to control the scrollbars of the Gtk2::ScrolledWindow hosting the Gtk2::Image. When the size request increases very much (for example from 437x512 to 31963x37449), the ScrolledWindow gets confused (in Windows), but recovers after a new set_size_request, which is near the existing size request.

What is the "correct" approach for controlling the scrollbars of a ScrolledWindow? The set_size_request is an easy method. I tried to explicitly set the adjustments with Gtk2::ScrolledWindow->set_hadjustment and set_vadjustment but could not get them working.

Ari

--
Prof. Ari Jolma
Geoinformaatio- ja paikannustekniikka
Geoinformation and positioning technology
Teknillinen Korkeakoulu / Helsinki University of Technology
POBox 1200, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma




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