PreviewCtl demo - rendering/refreshing of scroll bars  SOLVED

PDF-XChange Editor SDK for Developers

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

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: 1370
Joined: Thu Sep 05, 2019 12:35 pm

PreviewCtl demo - rendering/refreshing of scroll bars

Post 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
image.png (103.9 KiB) Viewed 2018 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 2018 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 2018 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)?

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

Re: PreviewCtl demo - rendering/refreshing of scroll bars

Post 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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: PreviewCtl demo - rendering/refreshing of scroll bars

Post 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
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: PreviewCtl demo - rendering/refreshing of scroll bars

Post by Sasha - Tracker Dev Team »

Hello zarkogajic,

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

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: PreviewCtl demo - rendering/refreshing of scroll bars

Post by zarkogajic »

Hi support,

Any ideas here?

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

Re: PreviewCtl demo - rendering/refreshing of scroll bars

Post by Sasha - Tracker Dev Team »

Hello zarkogajic,

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

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: PreviewCtl demo - rendering/refreshing of scroll bars

Post by zarkogajic »

Hi Support,

Ping...

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

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

Post by Sasha - Tracker Dev Team »

Hello zarkogajic,

Sadly, no news yet...

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply