Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report Zoom disappointing
Message
From
15/06/2004 12:33:39
 
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00913246
Message ID:
00913949
Views:
23
>I have looked into the projects ReportOutput and ReportPreview and I think I see your point. I can spot the place where the number is converted to a percent (e.g. search for ZOOM_LEVEL_PERCENT), but I cannot locate the spot where the percentage is actually used to resize the page(s). Changing the containers is one thing (that indeed can be done, even by me), but can it be changed in such a way that e.g. 231 percent is also possible?


Hello Peter.

after reading this thread, i was interested in this myself, so i had a brief look into the ReportOutput project.

It seems to me that it should be easy to add a userdefined zoom, even a mouse draging defining zoom, to this.

from what i saw in my brief glance through the code, i gathered this is all array driven ("zoomLevels()"). this array has 3 columns:

Col1 = Prompt in the menu
Col2 = Percentage for the zoom calculation
Col3 = how many pages are allowed to be viewed with this percentage

You'll find the definitions for the array values in the "FrxPreview_L o c.h" (no spaces) included in the project.

on selection of the zoom menu a method is called like that
"on Selection Bar m.i of zoom oref.actionSetZoom( bar() )"

so looking just at that, i think you can simply add an 11th row to the array
Col1 = "Custom"
Col2 = to be filled at runtime
Col3 = to be calculated at runtime

add a textbox or a spinner in the toolbar. in the valid() or lostfocus() of that call a function which fills column 2 + 3 and then call the method close to how the menu did.

There might be some adjustments you have to do in the existing code, but i almost think it'll work just the way i described it.

good luck.
Previous
Reply
Map
View

Click here to load this message in the networking platform