<?xml version="1.0" encoding="UTF-8"?>
<!--

If you're seeing this, it means your browser isn't capable of client side XSLT transformations.
You can't view this website correctly, sorry.

Please get a real browser like Firefox
    http://www.mozilla.com/firefox/

-->
<?xml-stylesheet type="text/xsl" href="xslt/site.xsl"?>

<page title="Rogue-Development.com" blogindex="true">

	<replacedBy href="objectHandles.html" />
 
    <navigation>
   		<page title="Home" page="index.xml" />
        <page title="Links" page="links.xml"/>
        <link title="Blog" url="http://marc-hughes.blogspot.com/index.html"/>
    </navigation>

    <content>
        <article type="img" url="images/logo.jpg" />
        


		<article heading="Object Handles" type="html">
        <p>
        <img src="images/ObjectHandles.png" style="border:none ; float:right"/>
        A very common UI element found in many applications are those little square handles around an on-screen object
        that allow you to move &amp; resize it.  I haven't been able to find anything like that pre-built in flex, so I've
        started a project to develop one.  It behaves as a container object so you can put any other flex component inside
        it and get the resizeable functionality right away.
        </p>
        </article>
        
        <article heading="Popularity" type="html" >
        <p>
          As of November of 2007 ObjectHandles has been downloaded over <b>25,000</b> times!
        </p>
        <p>  We just started a page on the google wiki to show off projects using
          ObjectHandles.  If you're using it we'd love to put a link up.  Visit <a href="http://code.google.com/p/flex-object-handles/wiki/ObjectHandlesUsage">http://code.google.com/p/flex-object-handles/wiki/ObjectHandlesUsage</a> and post
          a comment, we'll update the wiki page next time we see it.
        </p>
        </article>

		<article heading="Shameless Plug" type="html">
	        <p>
	          I use ObjectHandles in a project scheduling application called <a href="http://www.agileagenda.com/">AgileAgenda</a>, currently in beta you should give it a try.
	        </p>
        </article>
        
		<article heading="Features" type="html">
        <p>
        <ul>
          <li>Move &amp; Resize Functionality for any flex component</li>
          <li>Ability to limit movement and/or resizing in both vertical and horizontal directions</li>
          <li>Ability to limit movement and/or resizing along an anchor</li>
          <li>Simple 1-file (.swc) install</li>
          <li>Mouse cursors change when over different handles</li>          
          <li>Graphical handle support</li>
          <li>Aspect ratio support</li>
          <li>Initial rotatation support has been added</li>
        </ul>
        </p>
        </article>


        <article heading="Current Progress" type="html">
        <p>
        The basic functionality all works.  Now I need to deal with things such as:
        <ul>
        <li>Dragging one component over another correctly and maintaining z-order of the "current" item.</li>
		<li>Snapping to a "grid", maybe adding in some ability to line different objects up.</li>
        </ul>
        </p>
        </article>

        <article heading="Downloads" type="html">
        <p>
        <a href="http://code.google.com/p/flex-object-handles/downloads/list">Download From Google Code</a> - Precompiled swc binary.  Most users will want this.
        </p>
        </article>
        <article heading="Mailing List" type="html">
        <p>
        We're using Google Groups for discussions, subscribe to it to hear about new releases, etc.
        </p>
        <p>
       <table border="0" style="background-color: #fff; padding: 5px;" cellspacing="0">
  <tr><td>
    <img src="http://groups.google.com/groups/img/3/groups_bar.gif"
         height="26" width="132" alt="Google Groups" />
  </td></tr>
  <tr><td style="padding-left: 5px">
    <b>Subscribe to Flex ObjectHandles</b>
  </td></tr>
  <form action="http://groups.google.com/group/objecthandles/boxsubscribe">
  <tr><td style="padding-left: 5px;">
    Email: <input type="text" name="email" />
           <input type="submit" name="sub" value="Subscribe" />
  </td></tr>
</form>
<tr><td align="right">
  <a href="http://groups.google.com/group/objecthandles">Visit this group</a>
</td></tr>
</table>


		</p>
        </article>

		<article heading="ASDocs" type="html">
			<p>
			<a href="http://rogue-development.com/objecthandles/asdocs/">ASDocs available</a>
			</p>
		</article>

        <article heading="Example Usage" type="html">
        <p>
        First, download the .swc above.  Then add it to your FlexBuilder project library path.  Then you can use it to your heart's content in your mxml.
        </p>
        <p>
        In the example below you'll see two buttons in a vbox that can be moved together.  This is the mxml to achieve that:
        </p>
        <pre>
&lt;oh:ObjectHandles x=&quot;10&quot; y=&quot;158&quot; width=&quot;107&quot; height=&quot;108&quot; minHeight=&quot;30&quot; minWidth=&quot;30&quot;&gt;
	&lt;mx:VBox borderStyle=&quot;none&quot;  top=&quot;0&quot; left=&quot;0&quot; right=&quot;0&quot; bottom=&quot;0&quot;&gt;
		&lt;mx:Button width=&quot;100%&quot; height=&quot;50%&quot; /&gt;
		&lt;mx:Button width=&quot;100%&quot; height=&quot;50%&quot; /&gt;
	&lt;/mx:VBox&gt;
&lt;/oh:ObjectHandles&gt;
		</pre>

		<p>You can get the full mxml source for the application below <a href="objecthandles/MoveAndResize.mxml">here</a>.</p>

        </article>

        <article heading="Example" type="iframe" url="objecthandles/MoveAndResize.html" />



		<article heading="Contact" type="html">
        <p>
        The GoogleGroups mailing list above is the primary forum for communication about this project.  Please direct questions
        or comments there.
        </p>
		</article>

		<article heading="License" type="html">
		<p>
		This component is licensed under the MIT license.
		</p>
        <p>
        Copyright (c) 2007 Marc Hughes
		</p>
		<p>
		Permission is hereby granted, free of charge, to any person
		obtaining a copy of this software and associated documentation
		files (the "Software"), to deal in the Software without
		restriction, including without limitation the rights to use,
		copy, modify, merge, publish, distribute, sublicense, and/or sell
		copies of the Software, and to permit persons to whom the
		Software is furnished to do so, subject to the following
		conditions:
		</p>
		<p>
		The above copyright notice and this permission notice shall be
		included in all copies or substantial portions of the Software.
		</p>
		<p>
		THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
		EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
		OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
		NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
		HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
		WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
		FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
		OTHER DEALINGS IN THE SOFTWARE.
        </p>
        </article>


    </content>

</page>
