Re: Move a tLabel at runtime

From: Dan Rhea (_at_)
Date: 10/01/03


Date: Wed, 1 Oct 2003 08:39:36 -0400


"Willi Kühnis" <wkuehnis@bluewin.ch> wrote in message
news:3f7a839a@newsgroups.borland.com...
> Hi,
>
> I can move a TPanel at runtime when I enter in the "onMouseDown" this:
>
> ReleaseCapture;
> (Sender as TControl).perform(WM_SysCommand, $F012, 0);
>
> why does it not work for a TLabel?
> How can I do it?
>
> Thanks for Help
> Willi
>
>
>From TLabel help....

Because TLabel is not a descendant of TWinControl, it does not have its own
window and can’t receive direct input from the keyboard. To add an object to
a form that can respond to keyboard input (other than setting focus to
another object when an accelerator key is typed) in addition to displaying
text, use TStaticText.

Dan Rhea
Software Developer
SIRS/ProQuest
561-994-0079 x757
www.sirs.com