is there a way to rotate a textbox 90 or 180 degrees for exemple
--
No. But you can probably come up with a solution by using a canvas and the DrawText block, by setting the angle parameter to what you want.
--
I'll try it. thank you so much Italo
--
what i want to do is a screen like this with two textboxes or two lables in order to be used by two players in the same time
how can i do that?
--
as Italo already said, use the canvas...
--
A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/book2 ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles
How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .
Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of App Inventor, then try something and follow the
Top 5 Tips: How to learn App Inventor
You will not find a tutorial, which does exactly what you are looking for. But doing the tutorials (not only reading a little bit) help you to understand, how things are working. This is important and this is the first step to do.
thanks Mr Taifun. i really try to learn App Inventor by reading the free Inventor's Manual. but some times i need an example to understand well . i learnt a lot of things by analysing these example. that is why i steel hope to find an exemple of rotating a textbox in using canvas. thanks by advance.
--
as Italo already said, you can't rotate a textbox
Draws the specified text starting at the specified coordinates at the specified angle using the values of the FontSize and TextAlignment properties.
--
but you can use a canvas and the DrawTextAtAngle method to draw some text onto the canvas, for example draw the text for player 1 by 90 degrees and the text for player 2 by 270 degrees...
this however will not replace a textbox...
see also the documentation http://ai2.appinventor.mit.edu/reference/components/animation.html#Canvas
DrawTextAtAngle(text text, number x, number y, number angle)
hope that helps
This is a stupid trick to try, and I have not tried it ...
--
Make a separate screen arrangement with everything else rotated compared to the text box,
and switch the screen from Portrait to Landscape or vice versa.
This is a last resort, in my opinion.
Here's another idea ...
--
Is the text box output only?
If so, there are ways to ask for rotated text in HTML.
The Label and Web Viewer components can show limited html.
thank you very very much Mr Taifun / Mr Abraham Getzler / Mr Italo
i'm trying the way of Mr Taifun, and i'll tell you the result,
--
--
댓글 없음:
댓글 쓰기