VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 1234567[8]910 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 16:14:27 04/08/01 Sun
Author: Timo Meier
Subject: Re: Error in OnZoomChange event???
In reply to: Michel 's message, "Re: Error in OnZoomChange event???" on 08:26:17 04/07/01 Sat

IT WORX!

Thanx

>
>Hi Timo,
>
>Indeed when changing fractional zoom quantities the
>OnZoomChange was not changed when going from a
>fractional to a integral value. Here are the changes
>necessary to correct this:
>
>1. Add an FLastZoomPercent data member in
>TImageScrollBox
> FZoomPercent : Single;
> FLastZoomPercent : Single; <-- add this line
>
>2. Modify .SetZoomPercent
>
> if FSourceGraphic.IsEmpty or (InPercent <= 0.1)
>then
> Exit;
>
> FLastZoomPercent := FZoomPercent; <-- add this line
> FZoomPercent := InPercent;
>
>3. In .Redraw, near RecalcZoom, change the code as
>below and remove the OldZoom variable
> in the var section of the method.
>
>
> { MB Mar 02, 2000. Move outside of RedrawBW and
>RedrawNotBW.
> MB Apr 04, 2001. Change triggering of
>OnZoomChange by adding
> the FLastZoomPercent data member }
> RecalcZoom;
> ZoomChanged := (FLastZoomPercent <> FZoomPercent);
> if Assigned(FOnZoomChange) and ZoomChanged then
> FOnZoomChange(Self, FZoomPercent);
> FLastZoomPercent := FZoomPercent;
>
>
>Best regards,
>
>Michel
>
>>Have you found the something?
>>
>>CU
>>Timo

[ Next Thread | Previous Thread | Next Message | Previous Message ]

[ Contact Forum Admin ]


Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.