Re: Move a tLabel at runtime
From: Dan Rhea (_at_)
Date: 10/01/03
- Next message: Jose Carlos Marcusso Jr: "Changing the name of executable created when project is built"
- Previous message: Florent Ouchet: "Re: looping"
- In reply to: Willi Kühnis: "Move a tLabel at runtime"
- Next in thread: Willi Kühnis: "Re: Move a tLabel at runtime"
- Reply: Willi Kühnis: "Re: Move a tLabel at runtime"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Jose Carlos Marcusso Jr: "Changing the name of executable created when project is built"
- Previous message: Florent Ouchet: "Re: looping"
- In reply to: Willi Kühnis: "Move a tLabel at runtime"
- Next in thread: Willi Kühnis: "Re: Move a tLabel at runtime"
- Reply: Willi Kühnis: "Re: Move a tLabel at runtime"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]