Re: Programmatically setting scroll position of ScrolledWindow



Bartosz Kostrzewa wrote:
> As far as I remember you need to set the adjustment first (during the
> construction stage, for instance), then, each time you modify the
> adjustment, the scrollbars should react accordingly.
> 
> -B.

>> Now i would like to set the 'scrollage' programmatically':
>>
>> void test::setView(int iH, int iV) {
>>        m_adjh.set_value(iH);
>>        m_adjv.set_value(iV);

Let me rephrase this, I think this line is extraneous and should be
removed (as you corrently construct test with the two adjustments):

>>        m_scrW.set_vadjustment(m_adjh, m_adjv);

>>
>>        repaintEverything();
>> }
>>



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