mika Posted January 9, 2015 Share Posted January 9, 2015 I need a label than can rotate and I haven't found such functionality in existing component(s). I suppose one could write own component based on TUniLabel; however, that doesn't seem to be as trivial as one might assume. Is there a way to do this and/or is there some documentation about internal workings of the existing controls? This is pretty much last subject i'm testing before purchasing this great product. Possibility to write custom components quickly and effectively is quite important and I would very much like to resolve this as soon as possible. Thank you in advance. Link to comment Share on other sites More sharing options...
Sherzod Posted January 9, 2015 Share Posted January 9, 2015 Hi, Try: http://stackoverflow.com/questions/15843473/extjs-label-orientation http://jsfiddle.net/H5h7D/ http://try.sencha.com/extjs/4.0.7/examples/draw/rotatetext/viewer.html Best regards. Link to comment Share on other sites More sharing options...
mika Posted January 9, 2015 Author Share Posted January 9, 2015 Thank you for that information. How to implement this behaviour in TUniLabel descendant; for example TUniAngleLabel? I would like component to behave just the way any other component would; ie. component is rotated in design time as well as in runtime. Link to comment Share on other sites More sharing options...
mika Posted January 12, 2015 Author Share Posted January 12, 2015 I'm sorry to be little bit hasty but I really need this information. Without proper documentation it's nearly impossible to develope custom components that descend from existing UniGUI components. I've been searching net, but so far I haven't found enough information about this subject. For example, if I create TUniLabel descendant, there isn't public property canvas to be used. Also, I don't know what is proper way to create necessary JavaScript code for component. And no, links to pure ExtJS JavaScript examples aren't going to help much. Even though UniGUI is very good in itself, this problem and lack of information may very well be deal breaker for us. Link to comment Share on other sites More sharing options...
Sherzod Posted January 12, 2015 Share Posted January 12, 2015 Hi, Sorry, can you clarify once again the component, that you want to create ?! Are there any examples on the Internet, should look like this component? ... Best regards. Link to comment Share on other sites More sharing options...
mika Posted January 12, 2015 Author Share Posted January 12, 2015 I need to create label component which would have angle property. Component should be TUniLabel descendant and it should be able to display rotated text. I know that this can be accomlished using JS only but I need to create component for it because it's mandatory to be able to see this same behaviour in design time as well as run time. Link to comment Share on other sites More sharing options...
Sherzod Posted January 12, 2015 Share Posted January 12, 2015 it's clear... Link to comment Share on other sites More sharing options...
mika Posted January 12, 2015 Author Share Posted January 12, 2015 Well, you would think so. However, there aren't public property canvas to be used to draw anything in designtime. Also, how should i use JavaScript to create component in runtime? Link to comment Share on other sites More sharing options...
mika Posted January 12, 2015 Author Share Posted January 12, 2015 So... there really isn't any information about this subject? Link to comment Share on other sites More sharing options...
mika Posted January 14, 2015 Author Share Posted January 14, 2015 I finally managed to create component which draws angled label. How can I update properties of created ExtControl? For example, I need to update control when components angle property is changed. Link to comment Share on other sites More sharing options...
JeffBr Posted January 26, 2015 Share Posted January 26, 2015 I am in need of the same thing. Do you have any example draws angles label ? Thanks Link to comment Share on other sites More sharing options...
mika Posted February 3, 2015 Author Share Posted February 3, 2015 I ditched server side solution completely and did it client side by using JavaScript/Ext. Not an ideal solution at all but it will do for now. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now