2017년 5월 2일 화요일

how to rotate a textbox


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
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...



DrawTextAtAngle(text text, number x, number y, number angle)
Draws the specified text starting at the specified coordinates at the specified angle using the values of the FontSize and TextAlignment properties.

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,

--

Disable or delete notifier help


When i click save i dont want to show notifier when i restart. I try this way (see block) but something is wrong because the message not show when i install the apk. Why ?

--
Please send us a/ screenshot/s or the Components column. Then we can give you more information.

-- 
Why you need components ? It is about notification. When i click save, i dont want to see notification message, only when is apk install and is save button press it. Do you understand now ?

--
My question is if we can store false or true of  the clock ?

-- 
why do you need a clock? why don't you display the message directly after button click dependent on the value (true or false) stored in TinyDB?

-- 
Like in the pictures from the 1 com, i try but dont work. Maybe tinydb cant store false or tru, i dont know.

-- 
Like in the pictures from the 1 com, i try but dont work. Maybe tinydb cant store false or true, i dont know.

-- 
Like in the pictures from the 1 com, i try but dont work. Maybe tinydb cant store false or true, i dont know.




-- 
Like in the pictures from the 1 com, i try but dont work. Maybe tinydb cant store false or true, i dont know.




-- 
 Maybe tinydb cant store false or true, i dont know.

what about just trying it to find it out?
remove the clock component and display the message directly after saving depending on the value stored in TinyDB

-- 
I use the clock to eliminate notifier when screen initializate if the button was press it, if not, then the notifier is on.

--
there is no need to use a clock, see my previous answers

--  
Thank you very much for your time and help.

-- 
you might want to provide a screenshot of your solution?

-- 
Ok. 

--