[DUG] Runtime form Design
Jeremy Coulter
vss at vss.co.nz
Mon Aug 1 22:35:30 NZST 2005
Not sure how you got on with the below. I saw a few different wasy but very
similar to the below, BUT I needed to move a label, not just a TWinControl.
I found this article, and it works like a charm.
http://www.swissdelphicenter.ch/torry/showcode.php?id=429
Jeremy
-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of James Sugrue
Sent: 1 July 2005 14:14
To: 'NZ Borland Developers Group - Delphi List'
Subject: RE: [DUG] Runtime form Design
Cant find the article but basically if you use the following code:
const
SC_DragMove = $F012;
begin
ReleaseCapture;
if Sender is TWinControl then
(Sender as TWinControl).perform(WM_SysCommand, SC_DragMove, 0);
On the mouse down of a control, then it will allow you to drag the control
around a form at runtime.
-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of James Sugrue
Sent: Friday, 1 July 2005 13:39
To: 'NZ Borland Developers Group - Delphi List'
Subject: RE: [DUG] Runtime form Design
The was an FAQ or TI that I remember reading back in the early days that
explained how to do this. I created a wee demo app, just playing and it
worked quite well. I'll see if I can dig up the FAQ/TI.
-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of Alister Christie
Sent: Friday, 1 July 2005 12:52
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Runtime form Design
Has anyone done anything with Runtime form design. I want users to be able
to design their own forms (for representing data).
--
Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi
More information about the Delphi
mailing list