Just redraw all the time. You will see that this is not a problem.
Best,
Scuri
On Tue, Aug 26, 2014 at 10:42 AM, Milind Gupta <[email protected]>
wrote:
> Hi Antonio,
> Yes I understood that with experimentation. I see that if I place the
> glcanvasbox inside a scrollbox its the same behaviour but if I place the
> glcanvas box inside a vbox which in turn is inside a scroll box then it
> works by scrolling the children of the glcanvasbox but it still does not
> simply scroll the canvas and calls its action call back to redraw it.
> So I see even in the examples that the canvas is redrawn based on the
> scroll position. This means that we are responsible to storing the content
> of the canvas and rendering it all the time. Is that correct? How can this
> be done efficiently where we just redraw the part of the canvas which
> appears when scroll position is changed and not the portion which just
> moved? This can be done when the scroll bar is moving and when it stops for
> a half a sec then we can redraw the full thing instead of redrawing it all
> the time.
> I have figured out most of the components I need to implement all the
> functionality, thanks.
> Milind
>
>
> On Tue, Aug 26, 2014 at 6:22 AM, Antonio Scuri <[email protected]>
> wrote:
>
>> The children in the glcanvasbox are designed to be placed as embedded
>> controls, so they will not be affected by the scrollbar. The scrollbar is
>> free to be used by what's being draw on the canvas, like a 3D model.
>>
>> If you want to use it in that way then you will need to configure your
>> virtual world properly and when scroll_cb is called, to move the children
>> of the glcanvasbox.
>>
>> Best,
>> Scuri
>>
>>
>>
>> On Mon, Aug 25, 2014 at 4:48 PM, Milind Gupta <[email protected]>
>> wrote:
>>
>>> Hi,
>>> I am trying to use the scrollbar on the glcanvas box. I did
>>> scrollbar="YES" when creating it. I don't have a scroll_cb defined. The
>>> Scroll bar shows up but the scroll action does seem to be scroll the
>>> canvasbox. My controls (I have a text box in there) remain stationery.
>>> How can I get the scrolling action to work? I have attached my
>>> test script.
>>>
>>> Thanks,
>>> Milind
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Slashdot TV.
>>> Video for Nerds. Stuff that matters.
>>> http://tv.slashdot.org/
>>> _______________________________________________
>>> Iup-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Slashdot TV.
>> Video for Nerds. Stuff that matters.
>> http://tv.slashdot.org/
>> _______________________________________________
>> Iup-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds. Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users