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 49: [ObjectHandlesV1]:How to increase & decrease font size according to objecthandles resizing
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by abidr...@gmail.com, Jan 13, 2011
Hi,

i am using ObjectHandlesV1 and i want to do font size increase & decrease according to objecthandle resizing. 

how to increase & decrease font size according to objecthandles resizing.

how to possible.

please help me  
 
Aug 21, 2011
#1 stephenk...@gmail.com
One way to do this is to set up a custom MXML shape/group definition with an attached OH model and an included text element. Then, bind the fontSize  property for the text element to the model/object height (e.g. fontSize="{Math.abs(height)}"). You'll have to play with this a bit. One problem you'll encounter is that as the handles are resized, the text may start to extend beyond the horizontal border of the container object. There are a few possible solutions to that, but I'll leave that for you or someone else to explore as I haven't fixed that problem yet myself.

Powered by Google Project Hosting