comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Widget_windows, scrolling and refreshing
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Widget_windows, scrolling and refreshing [message #90672] Tue, 24 March 2015 13:39 Go to next message
PMan is currently offline  PMan
Messages: 61
Registered: January 2011
Member
Hello,

I have a widget_base which holds a variable number of widget_windows containing image chips. If the number of widget_windows required exceeds a threshold, the y scroll bar is enabled on the widget_base.

My problem is when the scroll bar is enabled and I actually scroll, only the top and bottom row of widget_windows refresh (i.e., the ones moving onto the visible area when scrolled). The center rows of widget_windows go black and are never refreshed.

There does not seem to be a 'scroll event' off which to cue a refresh. Any ideas how to make the black window_widgets refresh?

Thank you
Re: Widget_windows, scrolling and refreshing [message #90673 is a reply to message #90672] Tue, 24 March 2015 14:07 Go to previous messageGo to next message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Tuesday, March 24, 2015 at 9:40:03 PM UTC+1, Paul Mallas wrote:
> Hello,
>
> I have a widget_base which holds a variable number of widget_windows containing image chips. If the number of widget_windows required exceeds a threshold, the y scroll bar is enabled on the widget_base.
>
> My problem is when the scroll bar is enabled and I actually scroll, only the top and bottom row of widget_windows refresh (i.e., the ones moving onto the visible area when scrolled). The center rows of widget_windows go black and are never refreshed.
>
> There does not seem to be a 'scroll event' off which to cue a refresh. Any ideas how to make the black window_widgets refresh?
>
> Thank you

I've ran into a similar problem with FG graphics and I found a workaround. I don't like it, but saves me lots of headaches. I basically fire a timer_event every second (or less... depending) and I then refresh windows using something like:
oWin->refresh

Does the job, but I would also like these window to update on their own :-)
Let me know if you have a better solution.

Cheers,
Helder

PS: This also happens with normal windows. Event if I do p=plot(/test) and then do something else, the window might go black. The only way I found to get things back is to interact with the widget (or refresh it).
Re: Widget_windows, scrolling and refreshing [message #90674 is a reply to message #90673] Tue, 24 March 2015 14:59 Go to previous messageGo to next message
PMan is currently offline  PMan
Messages: 61
Registered: January 2011
Member
On Tuesday, March 24, 2015 at 5:07:31 PM UTC-4, Helder wrote:
> On Tuesday, March 24, 2015 at 9:40:03 PM UTC+1, Paul Mallas wrote:
>> Hello,
>>
>> I have a widget_base which holds a variable number of widget_windows containing image chips. If the number of widget_windows required exceeds a threshold, the y scroll bar is enabled on the widget_base.
>>
>> My problem is when the scroll bar is enabled and I actually scroll, only the top and bottom row of widget_windows refresh (i.e., the ones moving onto the visible area when scrolled). The center rows of widget_windows go black and are never refreshed.
>>
>> There does not seem to be a 'scroll event' off which to cue a refresh. Any ideas how to make the black window_widgets refresh?
>>
>> Thank you
>
> I've ran into a similar problem with FG graphics and I found a workaround. I don't like it, but saves me lots of headaches. I basically fire a timer_event every second (or less... depending) and I then refresh windows using something like:
> oWin->refresh
>
> Does the job, but I would also like these window to update on their own :-)
> Let me know if you have a better solution.
>
> Cheers,
> Helder
>
> PS: This also happens with normal windows. Event if I do p=plot(/test) and then do something else, the window might go black. The only way I found to get things back is to interact with the widget (or refresh it).

Ok, I will try out your idea. The only things I could come up with were 1) creating an additional 'Refresh all' button, or 2) making the scroll range so large that everything can scroll out of/into visible range. Both sort of lousy choices.
Re: Widget_windows, scrolling and refreshing [message #90676 is a reply to message #90674] Tue, 24 March 2015 15:19 Go to previous message
PMan is currently offline  PMan
Messages: 61
Registered: January 2011
Member
On Tuesday, March 24, 2015 at 5:59:50 PM UTC-4, Paul Mallas wrote:
> On Tuesday, March 24, 2015 at 5:07:31 PM UTC-4, Helder wrote:
>> On Tuesday, March 24, 2015 at 9:40:03 PM UTC+1, Paul Mallas wrote:
>>> Hello,
>>>
>>> I have a widget_base which holds a variable number of widget_windows containing image chips. If the number of widget_windows required exceeds a threshold, the y scroll bar is enabled on the widget_base.
>>>
>>> My problem is when the scroll bar is enabled and I actually scroll, only the top and bottom row of widget_windows refresh (i.e., the ones moving onto the visible area when scrolled). The center rows of widget_windows go black and are never refreshed.
>>>
>>> There does not seem to be a 'scroll event' off which to cue a refresh. Any ideas how to make the black window_widgets refresh?
>>>
>>> Thank you
>>
>> I've ran into a similar problem with FG graphics and I found a workaround. I don't like it, but saves me lots of headaches. I basically fire a timer_event every second (or less... depending) and I then refresh windows using something like:
>> oWin->refresh
>>
>> Does the job, but I would also like these window to update on their own :-)
>> Let me know if you have a better solution.
>>
>> Cheers,
>> Helder
>>
>> PS: This also happens with normal windows. Event if I do p=plot(/test) and then do something else, the window might go black. The only way I found to get things back is to interact with the widget (or refresh it).
>
> Ok, I will try out your idea. The only things I could come up with were 1) creating an additional 'Refresh all' button, or 2) making the scroll range so large that everything can scroll out of/into visible range. Both sort of lousy choices.

Funny thing - I just 'remote desktop'ed in my computer at work. And it seems that this problem does not occur when using remote desktop. Usually for any type of graphics it's terrible, but for this, it actually fixes the problem. Go figure ...
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 3d polygon mesh for 3 indpendent variables, x,y,z
Next Topic: Question on MODIS Conversion Toolkit

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 07:17:19 PDT 2025

Total time taken to generate the page: 0.00478 seconds