 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Eagle Guest
|
Posted: Fri Jan 21, 2005 10:10 pm Post subject: help with shapes |
|
|
Hi,
I'm wanting to test my Delphi on a simple paint program that drops shapes
onto a canvas (form, paintbox), but allows the user to resize the shape by
supplying handles/grips. I can get the shapes on to the canvas, select
them, move them etc.. I can add a caption to them, and if the cpation is too
large to fit inside hen reshape, but I'd rather be able to resize with the
mouse using 'handles'.
Any pointers in the right direction would be much appreciated.
Thanks
|
|
| Back to top |
|
 |
David Reeve Guest
|
Posted: Fri Jan 21, 2005 11:53 pm Post subject: Re: help with shapes |
|
|
"Eagle" <news (AT) eagle136 (DOT) fsnet.co.uk> wrote
| Quote: | Hi,
I'm wanting to test my Delphi on a simple paint program that drops shapes
onto a canvas (form, paintbox), but allows the user to resize the shape by
supplying handles/grips. I can get the shapes on to the canvas, select
them, move them etc.. I can add a caption to them, and if the cpation is
too
large to fit inside hen reshape, but I'd rather be able to resize with the
mouse using 'handles'.
Any pointers in the right direction would be much appreciated.
|
One of my many stalled projects does something like this. The following
unit, http://users.bigpond.net.au/dreeve/delphi/stateobj.pas describes an
eliptical object which has a 'hot spot' manager to control 'handles' on its
surface..... their visibility, snap characteristics and so forth. Hope it
helps.
Dave
|
|
| Back to top |
|
 |
AlanGLLoyd Guest
|
Posted: Sat Jan 22, 2005 8:58 pm Post subject: Re: help with shapes |
|
|
In article <csr2j6$oht$1 (AT) news6 (DOT) svr.pol.co.uk>, "Eagle"
<news (AT) eagle136 (DOT) fsnet.co.uk> writes:
| Quote: | but I'd rather be able to resize with the
mouse using 'handles'.
|
Delphi Developer's Handbook (D3) by Marco Cantu (& others) has a
TDDHSizerControl in Chap 8 which will put re-sizing handles on any component.
You may find it by Googling, or on the publisher's (Sybex) site.
Alan Lloyd
[email]alanglloyd (AT) aol (DOT) com[/email]
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|