PreviewCtl demo - rendering/refreshing of scroll bars

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
zarkogajic
User
Posts: 630
Joined: Thu Sep 05, 2019 12:35 pm

PreviewCtl demo - rendering/refreshing of scroll bars

Post by zarkogajic » Fri Feb 21, 2020 9:42 am

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
image.png (103.9 KiB) Viewed 879 times

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
image.png (87.95 KiB) Viewed 879 times

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

image.png
image.png (79.18 KiB) Viewed 879 times

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)?


User avatar
Sasha - Tracker Dev Team
User
Posts: 4855
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: PreviewCtl demo - rendering/refreshing of scroll bars

Post by Sasha - Tracker Dev Team » Tue Feb 25, 2020 7:54 am

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
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

zarkogajic
User
Posts: 630
Joined: Thu Sep 05, 2019 12:35 pm

Re: PreviewCtl demo - rendering/refreshing of scroll bars

Post by zarkogajic » Tue Feb 25, 2020 10:24 am

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

User avatar
Sasha - Tracker Dev Team
User
Posts: 4855
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: PreviewCtl demo - rendering/refreshing of scroll bars

Post by Sasha - Tracker Dev Team » Thu Mar 12, 2020 12:00 pm

Hello zarkogajic,

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

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

zarkogajic
User
Posts: 630
Joined: Thu Sep 05, 2019 12:35 pm

Re: PreviewCtl demo - rendering/refreshing of scroll bars

Post by zarkogajic » Fri Mar 27, 2020 5:23 pm

Hi support,

Any ideas here?


User avatar
Sasha - Tracker Dev Team
User
Posts: 4855
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: PreviewCtl demo - rendering/refreshing of scroll bars

Post by Sasha - Tracker Dev Team » Tue Mar 31, 2020 1:56 pm

Hello zarkogajic,

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

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply