🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.components.usage
Article #21

Re: Moving components around

#21
From: Mark Timmings
Date: Tue, 17 Nov 1998 00:00
20 lines
2203 bytes
In article <36507ECC.2BD4BC5E@bellsouth.net>, Zimba
<REMOVEkennaa@bellsouth.net> writes
>please I want to be able create components at runtime as my codes below
>show but I would like to be able to move them to desired positions. Does
>anyone know how I can move them around? Right now I can only create them
>with the codes below below I cannot move them around.

[snip]

There are a couple of ways of doing this. The first is you intercept the
mousedown, mouseup and mousemove events of the components you've created
and then either draw the rubber banding or draw the new positions
(and/or size) as the component is dragged (depending upon the effect you
want). Alternatively, check out Torry's or the Delphi Super Page web
sites for components to do this for you. I know of a couple, one is
called TStretchHandles (or Handles) and it saves you a lot of time and
effort and can do everything you probably want. 

I hope this helps
Mark
Technical Details
Message-ID: <qnzzlCA2oSU2EwmX@neatsoft.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36507ECC.2BD4BC5E@bellsouth.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 108890,ad7d8cb1fb4c02ee
X-Google-Attributes: gid108890,public
X-Google-Thread: fb0ea,ad7d8cb1fb4c02ee
X-Google-Attributes: gidfb0ea,public
X-Google-Thread: f973b,ad7d8cb1fb4c02ee
X-Google-Attributes: gidf973b,public
X-Google-Thread: 112b07,ad7d8cb1fb4c02ee
X-Google-Attributes: gid112b07,public
X-Google-Thread: fe2ce,ad7d8cb1fb4c02ee
X-Google-Attributes: gidfe2ce,public
X-Google-Thread: 109d99,ad7d8cb1fb4c02ee
X-Google-Attributes: gid109d99,public
From: Mark Timmings <mtimmings@neatsoft.demon.co.uk>
Subject: Re: Moving components around
Date: 1998/11/17
Message-ID: <qnzzlCA2oSU2EwmX@neatsoft.demon.co.uk>
X-Deja-AN: 412694080
Distribution: world
X-NNTP-Posting-Host: neatsoft.demon.co.uk:194.222.179.245
References: <36507ECC.2BD4BC5E@bellsouth.net>
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 911288945 nnrp-07:4300 NO-IDENT neatsoft.demon.co.uk:194.222.179.245
MIME-Version: 1.0
Newsgroups: comp.lang.pascal.delphi.components.usage,comp.lang.pascal.delphi.components.writing,comp.lang.pascal.delphi.components.misc,comp.lang.pascal.delphi.components,borland.public.delphi.vcl.components.using,borland.public.delphi.vcl.components.writing