[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
View manipulation
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C0751A.EDF22020
Content-Type: text/plain;
charset="iso-8859-1"
I am just starting developing an application where there is a graphical
representation of a tree structure for the user to manipulate. Each node of
the tree has things like an editable text field, some buttons and images
etc. I want to allow the users to be able to drag the nodes around into
different positions and redraw the graph as required.
For the background I will use a scrollview, but I am not sure whether things
will be easier for me to add subviews to my clipview so that each node is a
subview, and then perhaps use the standard dragging protocols from there, or
whether I should do something like the Sketch example and just have a single
view that looks after drawing the different bits by having an array of
graphic objects that draw themselves (and handle manipulation through
mousedown and next event matching mask etc).
Any recommendations of the best structure to use would be great...
TIA
----------------------------------------
Gideon King
Vice President - Software Architecture
AIG Software International
Kuala Lumpur, Malaysia
www.aigsi.com
----------------------------------------
Ability is what you're capable of doing. Motivation determines what you do.
----------------------------------------
------_=_NextPart_001_01C0751A.EDF22020
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>View manipulation</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>I am just starting developing an application where =
there is a graphical representation of a tree structure for the user to =
manipulate. Each node of the tree has things like an editable text =
field, some buttons and images etc. I want to allow the users to be =
able to drag the nodes around into different positions and redraw the =
graph as required.</FONT></P>
<P><FONT SIZE=3D2>For the background I will use a scrollview, but I am =
not sure whether things will be easier for me to add subviews to my =
clipview so that each node is a subview, and then perhaps use the =
standard dragging protocols from there, or whether I should do =
something like the Sketch example and just have a single view that =
looks after drawing the different bits by having an array of graphic =
objects that draw themselves (and handle manipulation through mousedown =
and next event matching mask etc).</FONT></P>
<P><FONT SIZE=3D2>Any recommendations of the best structure to use =
would be great...</FONT>
</P>
<P><FONT SIZE=3D2>TIA</FONT>
</P>
<P><FONT SIZE=3D2>----------------------------------------</FONT>
<BR><FONT SIZE=3D2>Gideon King</FONT>
<BR><FONT SIZE=3D2>Vice President - Software Architecture</FONT>
<BR><FONT SIZE=3D2>AIG Software International</FONT>
<BR><FONT SIZE=3D2>Kuala Lumpur, Malaysia</FONT>
<BR><FONT SIZE=3D2>www.aigsi.com</FONT>
<BR><FONT SIZE=3D2>----------------------------------------</FONT>
<BR><FONT SIZE=3D2>Ability is what you're capable of doing. Motivation =
determines what you do.</FONT>
<BR><FONT SIZE=3D2>----------------------------------------</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C0751A.EDF22020--