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: 12[3]45678910 ]


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

Date Posted: 20:44:33 07/21/03 Mon
Author: Michel
Subject: Re: MouseHandle not working
In reply to: rick 's message, "MouseHandle not working" on 07:59:58 07/20/03 Sun


Hi Rick,

On the TImageScrollBox is a TImage, so the cursor needs to be changed on the TImage itself. There is the FImage data member of TImageScrollBox but it is protected. One solution is to create a temporary class to access it. For example,

type
TProtectedScrollBox = class(TImageScrollBox);

TProtectedScrollBox(ImageScrollBox).FImage.Cursor := crArrow;

This will allow you to change the cursor.

Best regards,

Michel
>I think I need to explain my layering first. I am
>inserting frames onto a main form based on where the
>user is on the main form. On one of these frames is a
>list of images which opens an image viewer form when
>double clicked. When the image form is displayed I
>get a cursor that is a solid vertical bar with an
>arrow to the left and right. When a pan button is
>clicked I perform this:
>
>ImageScrollBox.MouseMode := mmDrag;
>ImageScrollBox.Cursor := crArrow;
>
>No matter what I do I cannot get the cursor to change
>to a monkey hand. The image is panning and while I am
>doing a pan I see the monkey hand, but as soon as I
>release the mouse button the hand goes back to the
>vertical bar.
>
>Sorry for the length of this. Any ideas for me?

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