Flickering when setting document in readonly mode

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

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

martin2
User
Posts: 29
Joined: Thu May 29, 2008 9:06 am

Flickering when setting document in readonly mode

Post by martin2 »

Hi,

we have the following nasty effect:
We want to display most of our documents in readonly mode. Unfortunately we first have to load the document to get the doc-id and afterwards set the mode to readonly. But when we set this flag, toolbars seem to disappear and reappear. As our documents are displayed in "zoom to fit" mode, the view is first enlarged (as more space is available after the toolbars disappeared) and then scaled down again when the toolbars reappear which causes a nasty flickering and of course some time until the document is finally displayed.

Is there any possibility to avoid this effect?

Thanks
Martin
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Flickering when setting document in readonly mode

Post by Vasyl-Tracker Dev Team »

Hi, Martin.

I cannot reproduce this effect. Very strange...
Please check your code for processing of events(OnEvent routine) from our control...
The control sends event with PXCVA_OnPropertyChanged type each time when you have changed the "Documents[xx].ReadOnly" property(and for many other properties).

Can you send to us the your simple example for reproduce it?

Thanks.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
martin2
User
Posts: 29
Joined: Thu May 29, 2008 9:06 am

Re: Flickering when setting document in readonly mode

Post by martin2 »

Hi Vasyl,

you a wright! Sorry - by preparing a simple test-case to show the effect we found out that the effect we saw was not caused by the viewer but by another layout effect.

Thanks - and sorry again
Martin
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Flickering when setting document in readonly mode

Post by Tracker Supp-Stefan »

Glad that the problem is located Martin :)

Cheers,
Stefan