Tuesday, January 31, 2012

Transform Tool - multi selection (Visio approach)

Hello! 
Good news, I've added one of the most desired feature - multi selection. Currently it works similar to MS Visio multi selection model.
See example below, click on images holding shift or ctrl keys to multi select them. You can also drag mouse over design area to get selection rectangle. Press view source context menu to get source code. 

SWC: Transform Tool 2 version 2.4.7.
Source code: Project home page.
ASDoc:  API ASDoc.
Required Flex SDK version: SDK 4.5

11 comments:

  1. Hello Volodymyr,

    i see you've been very diligent again!
    I'm trying to set rotation manually (e.g. with Button [180°] or Slider). Can you tell me how to do it with Anker-Point in the center/middle?

    Thaaanx a lot for answering my beginner questions!!

    ReplyDelete
    Replies
    1. Hi,

      What connector do you use: UIConnector, DataConnector etc.?

      Delete
    2. Hi,
      i use the UIScaleConnector.

      Delete
    3. protected function clickHandler(event:MouseEvent):void
      {
      var data:DisplayData = DataUtil.createData(uiTrget);
      data.rotate(180);
      DataUtil.applyData(uiTrget, data);
      tool.updateTool();
      }

      Delete
  2. Hi Volodymyr,

    I wanted to know if your tool can support text transformation? For example, normal state and edit text state like in powerpoint. Because, if you try to select text with mouse, it is triggered as a drag event.
    Any idea? Thanks,

    ReplyDelete
    Replies
    1. Hi,

      See example in my post http://vstyran-flex.blogspot.com/2012/02/transform-tool-text-modes.html

      Delete
  3. you are a legend, totally awesome.. thank you

    ReplyDelete
  4. Hi Volodymyr,

    This a small request. Could you please share an example for adding your transform tool to components added at runtime? Like if I create something like:
    var txtField:TextField = new TextField;

    Now when I try to add your transform tool to this, its not working. It will be a great help if you post an example with runtime added components.

    Thanks a lot!
    Abinash

    ReplyDelete
  5. Hi Volodymyr
    Shift keys and control keys do not matter. But a multi-dragging does not work.

    ReplyDelete
  6. Hi Volodymyr,
    Your work really great...
    i want to group two or tree objects permanently and then i want create another group...how can I achieve this?

    ReplyDelete