My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 11: How can i add TextField or TextInput into objectHandle and objectHandle should support all features like rotation and moving
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Dec 2009


 
Reported by naresh....@gmail.com, Jul 30, 2009
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.


Jul 31, 2009
#1 abidr...@gmail.com
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);
			}
Aug 2, 2009
#2 naresh....@gmail.com
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 .
Dec 22, 2009
Project Member #3 marc.hug...@gmail.com
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.
Status: Done

Powered by Google Project Hosting