WPCubed Product Support

Problem with the "ViewControls" property

support

Hi,

Thanks for reporting it. ScrollBars have been redone in V3.03.1

Julian

#13 ♥ 0
17.5k Views 4 users read 3 min

I have just upgraded to version 3 (3.03.0) and am also having a lot of problems with the ViewControls property.

For example, in the FormCreate or FormShow if I set ViewControls := [wpVertScrollBar,wpHorzScrollBar] then both scrollbars appear.

However, if I set ViewControls to [wpViewPanel,wpVertScrollBar,wpHorzScrollBar] the vertical scrollbar disappears.

If I set ViewControls to [wpViewPanel,wpNavigationPanel,wpVertScrollBar,wpHorzScrollBar] then the vertical scrollbar is now visible but now the horizontal scrollbar has disappeared.

#12 ♥ 0
support

The problem should be fixed in V3.02 - internally the scrollbars were mixed up.

#11 ♥ 0

Hi,

I'm having this very same problem with both C++Builder 5 and C++Builder XE. I've downloaded the last version of wpViewPdf (1 october 2011).

I create the viewer in the OnCreate event of the form:
WPViewPDF1= new TWPViewPDF(this);
WPViewPDF1->ViewerStart(...);
WPViewPDF1->Parent= this;
WPViewPDF1->Align= alClient;

Then in the OnShow event I set only horizontal scrollbar to appear:
WPViewPDF1->ViewControls.Clear();
WPViewPDF1->ViewControls << wpHorzScrollBar;

It doesn't work. All the controls appear. Besides, the vertical scrollbar does not resize according to the size of the document (it is not syncronized with the document).

EDIT
Just for the records, when I've moved the assignments to the OnCreate event they have worked OK, opposite to what it has been said before to set them in the OnShow event.
In any case, this only works if I set only both horizontal and vertical scrollbars. If I set the navigation panel, or only the vertical scrollbar or other combination it doen not work properly.

Edorta

#10 ♥ 0

Problem solve with the last version of wPDFView3.

#9 ♥ 0

Hi,

I'm upping my post because I still have this problem.
I'm now using Delphi XE and wPDFView3.
I try many solution to change the "ViewControls" in the Form.OnShow to but nothing works.

Am I the only one who have this problem ?

(In design mode? "WPViewPDF V3.0 - Engine not loaded" is write. Is that normal ?)

Florent

#8 ♥ 0

I allready try it.
All the controls are still show.

Florent

#6 ♥ 0
support

The demo app uses this code:

WPViewPDF1.ViewControls := [wpHorzScrollBar,wpVertScrollBar];

This masicyll hides all other panels except for the scrollbars.

Julian

#5 ♥ 0
support

Hi,

which development system do you use?

Julian

#3 ♥ 0

I also try that

SendMessage(Viewer.Handle, WM_PDF_COMMAND, COMPDF_SelectControls, 0);

Still the same result

#2 ♥ 0

Hi,

I'm looking for disable the "?" button on the top right corner.
I tryed to use the wpPropertyPanel but it doesn't work.
I also try to set all the ViewControls option to false or true but this is always the same result. All controls are show.

Have you an idea for my problem.

Thanks.

Flow

#1 ♥ 0