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: 1234[5]678910 ]


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

Date Posted: 07:34:33 10/25/02 Fri
Author: Michel
Subject: Re: OnImageMouseUp problem
In reply to: Ed Fessler 's message, "OnImageMouseUp problem" on 16:41:51 10/24/02 Thu


Hi Ed,

I looked at the source, and the Sender is the original Sender from the VCL, ie, the object on which the X,Y coordinates are from. I can make the Sender the TImageScrollBox box, but then the X,Y coordinates will not be with respect to the client area of the image scroll.

This also gets confusing, because the mouse event may come from the TImage on the scroll box or from the TScrollBox if the mouse event is not on the image (when the image does not take up the entire scroll box.

To make things simpler, I'll make the Sender the TImageScrollBox. Just locate the

procedure TImageScrollBox.ImageMouseDown
procedure TImageScrollBox.ImageMouseMoveprocedure procedure TImageScrollBox.ImageMouseUp
procedure TImageScrollBox.ImageDblClick

and replace the Sender with Self. I have updated my code base.

Best regards,

Michel


>I am having trouble with the OnImageMouseUp event. It
>works ok except that I am creating several
>TImageScrollbox components on my form at runtime. I
>set all of the OnImageMouseUp events to the same
>event. When this event fires, I need to know which
>image scroll box fired the event. I thought the the
>"sender" parameter would have that component that
>fired the event, but it does not seem to.
>
>Let me know what you think.
>
>Ed

[ 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.