Re: OpenPictureDialog Problems
- From: "Henry Bartlett" <hambar@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Jul 2005 09:15:11 +1000
"J French" <erewhon@xxxxxxxxxx> wrote in message
news:42e76916.12013113@xxxxxxxxxxxxxxxxxxxxxxx
> On 27 Jul 2005 01:25:28 -0700, "alanglloyd@xxxxxxx"
> <alanglloyd@xxxxxxx> wrote:
> >begin
> > if Sender is TManyShape then
> > begin
> > fCurrentShape :=TManyShape(Sender);
> > FCurrentShape.Invalidate;
> > if ssRight in Shift then
> > TManyShape(Sender).Tag := RIGHT_BUTTON_DOWN
> FCurrentShape.Tag := RIGHT_BUTTON_DOWN
>
> Surely that is more consistent <smirk>
Both of you are right, of course but I was trying to use as much of
the original code as possible so as not to cloud my main poinr; the
need to set a reference to the last shape object clicked on.
You should be now able to see from my later post that my recommended
version uses the hard typecast and reuses the fCurrentShape variable.
--
Henry Bartlett
Delphi Links Page:
( http://www.hotkey.net.au/~hambar/habit/delflink.htm )
.
- References:
- OpenPictureDialog Problems
- From: cybatech
- Re: OpenPictureDialog Problems
- From: Maarten Wiltink
- Re: OpenPictureDialog Problems
- From: cybatech
- Re: OpenPictureDialog Problems
- From: Henry Bartlett
- Re: OpenPictureDialog Problems
- From: Rob Kennedy
- Re: OpenPictureDialog Problems
- From: Henry Bartlett
- Re: OpenPictureDialog Problems
- From: cybatech
- Re: OpenPictureDialog Problems
- From: Henry Bartlett
- Re: OpenPictureDialog Problems
- From: cybatech
- Re: OpenPictureDialog Problems
- From: Henry Bartlett
- Re: OpenPictureDialog Problems
- From: alanglloyd@xxxxxxx
- Re: OpenPictureDialog Problems
- From: J French
- OpenPictureDialog Problems
- Prev by Date: Re: Changing the color of the active title bar
- Next by Date: Re: OpenPictureDialog Problems
- Previous by thread: Re: OpenPictureDialog Problems
- Next by thread: WTB: Delphi 7 Personal or Pro
- Index(es):