kingyiren / flex-object-handles

Automatically exported from code.google.com/p/flex-object-handles
0 stars 0 forks source link

How can i add TextField or TextInput into objectHandle and objectHandle should support all features like rotation and moving #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by naresh....@gmail.com on 30 Jul 2009 at 2:59

GoogleCodeExporter commented 8 years ago
var oh1:ObjectHandles = new ObjectHandles();

            oh1.allowRotate=false;
            oh1.x=158; 
            oh1.y=94;
            oh1.height=47; 
            oh1.width=168; 
            oh1.setStyle("backgroundAlpha","0");
            oh1.setStyle("borderThickness","0");
            val(oh1.id)

            var txt:TextArea = new TextArea();
            txt.text = "Click here and type your text2.";
            txt.horizontalScrollPolicy = "off";
            txt.verticalScrollPolicy = "off";
            txt.percentWidth=100;
            txt.percentHeight=100;

            txt.setStyle("backgroundAlpha","0") 
            txt.setStyle("fontSize","14");  
            txt.setStyle("color","#000000");
            txt.setStyle("fontFamily","Verdana");
            txt.setStyle("fontWeight","bold");
            txt.setStyle("textAlign","center");
            txt.setStyle("borderThickness","0");
            txt.setStyle("borderThickness","0");
            txt.setStyle("borderStyle","none");
            txt.addEventListener(MouseEvent.CLICK , clickDis);
            if(dd=="test")
            {
                oh1.allowHMove=true;
                oh1.allowHResize=true;
                oh1.allowVMove=true;
                oh1.allowVResize=true;
                oh1.allowRotate=false;
                oh1.mouseChildren=true;
                txt.selectable=true;
                txt.editable=true;
                oh1._allowKeyboardManipulation=false;
                oh1.addChild(txt);
                generic.addChild(oh1);
            }

Original comment by abidr...@gmail.com on 31 Jul 2009 at 7:03

GoogleCodeExporter commented 8 years ago
Hi Abidreha ,
This is naresh , thanks for your help .
I want the out put like this
1) I have to apply OH tool to TextField.
2) When I resize the TextField throw OH ,Along with TextField Text Should be 
incerese
in proposinal to TextField .

Original comment by naresh....@gmail.com on 3 Aug 2009 at 5:53

GoogleCodeExporter commented 8 years ago
Changing the text size inside a component managed by ObjectHandles is outside 
the
scope of ObjectHandles.

But I would suggest listening to the RESIZING event, calculating a new font 
size, and
setting that.

Original comment by marc.hug...@gmail.com on 22 Dec 2009 at 3:58