Page 1 of 1

PreviewCtl demo - rendering/refreshing of scroll bars

Posted: Fri Feb 21, 2020 9:42 am
by zarkogajic
Hi support,

I'm using IPXV_PagesPreviewCtl to create PDF preview.

I have some issue with rendering/refreshing of the scrollbars.

In the PreviewCtl demo - this issue can be seen when having at least two controls created and switching between tabs:

image.png

The arrow points to the scroll bar section that did not refresh.

After I move the mouse over that region it will be refreshed:

image.png

The same refreshing issue can be seen when moving the scroll bar up/down with the mouse:

image.png

In my actual application it is even worse:

image.png

The arrow points to where the scroll bar handle actually is, but note how the below area of the scroll bar is not rendered correctly.

This only happens with the vertical scroll bar, the horizontal one refreshes ok.

Can this be somehow fixed? Maybe send the wm_paint to the scroll bar somehow (need the handle)?


Re: PreviewCtl demo - rendering/refreshing of scroll bars

Posted: Tue Feb 25, 2020 7:54 am
by Sasha - Tracker Dev Team
Hi zarkogajic,

Well if you need to redraw those, then you will need to get the parent scroll container object for the preview control object. It holds the scroll bars - probably you can try redrawing it or something.

Cheers,
Alex

Re: PreviewCtl demo - rendering/refreshing of scroll bars

Posted: Tue Feb 25, 2020 10:24 am
by zarkogajic
Hi Alex,

I can get to the IUIX_ScrollContainer. I've tried calling Update() - no luck.

I then tried with GetScrollBar::IUIX_ScrollBar from IUIX_ScrollContainer. I've tried SendRawEvent with e_Notify / UIX_Notify_Update - no luck.

So, I can get to the object(s) I need - but am not sure how to force their refresh - or if I'm calling the right methods / sending the correct notifications...

-žarko

Re: PreviewCtl demo - rendering/refreshing of scroll bars

Posted: Thu Mar 12, 2020 12:00 pm
by Sasha - Tracker Dev Team
Hello zarkogajic,

Forwarded this one to Vasyl - probably he can tell more.

Cheers,
Alex

Re: PreviewCtl demo - rendering/refreshing of scroll bars

Posted: Fri Mar 27, 2020 5:23 pm
by zarkogajic
Hi support,

Any ideas here?


Re: PreviewCtl demo - rendering/refreshing of scroll bars

Posted: Tue Mar 31, 2020 1:56 pm
by Sasha - Tracker Dev Team
Hello zarkogajic,

Nope, he didn't have time to look at this one yet.

Cheers,
Alex

Re: PreviewCtl demo - rendering/refreshing of scroll bars

Posted: Tue Jun 02, 2020 12:22 pm
by zarkogajic
Hi Support,

Ping...


Re: PreviewCtl demo - rendering/refreshing of scroll bars  SOLVED

Posted: Thu Jun 04, 2020 7:49 am
by Sasha - Tracker Dev Team
Hello zarkogajic,

Sadly, no news yet...

Cheers,
Alex