Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bernard Bout's zoombar: Resize question
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9 SP2
Application:
Desktop
Miscellaneous
Thread ID:
01477040
Message ID:
01477459
Views:
80
>>Q1. Which class are you using - one has reflections the other has not.
>>Q2. I am not aware that a VFP toolbar can be resized as such. Are you resizing the container that is placed in the toolbar?
>>Q3. Without seeing code I cannot say what is causing the problem. Maybe upload a simple form with the "sizable" zoombar for testing?
>>Q4. Have you made any modifications to the original class?
>>Q4. By "zoombar to resize accordingly" do you mean the icons resize or what exactly do you want resized? The actual design of any zoombar is to maintain the same size of its icons, but locate itself centrally in a horizontal position.

>
>1. I'm using the one with reflections, but currently not showing reflections (i.e. ShowReflections = .F.).
>
>2. Yes, I'm trying to resize the container to the same width as the main screen if the app's window is no longer maximized.
>
>3. I'll try to come up with something and upload.
>
>4. The main modification I've made is to zoomImage::MouseMove(). I surrounded the existing code within an IF nButton = 0 condition to prevent an image disappearing/shrinking if it's clicked and dragged.
>
>5. I do not wish to resize the icons themselves, just the container as described in 2.

To understand what exactly you are doing I am concentrating on Q2.

1. Are you actually using the zoombar inside a vfp toolbar? If so why? The only reason for doing that would be to dock it.
2. Is the app MDI or SDI ?
3. In the download zip is a form called SAMPLEFORM.SCX. When run, this form is resizable and the zoombar is always centered in the window. The property to control this is ZOOMBARCONTAINEREF.NORESIZE. Default is .F. to allow resize. The container height is never actually resized just the width. If you change this to .T. then the zoombar is not CENTERED on the form. If left at .F. the zoombar is centered.
This above property is used in the Container.Resize event.

Does this sample not work for you?

Avoid using the zoombar in a toolbar unless you really need it. If you do use it in a toolbar it will behave like any toolbar - which means it is not resizable, even if docked. That is controlled by windows.

Thanks for the fix re. zoomImage::MouseMove().

4. Did you know that you can make the zoombar work just like the original one from Apple - As an app launcher running on your desktop?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform