Rotated Text

A rotated text control. A rotated text control displays text rotated to a given number of degrees. O degrees being unrotated.

Massimiliano Vessi - Nov 26th, 2018
It works well, but it has less options of the standard text. For example it misses the textStyle and TextAlign properties.
Elanor Buchanan - Nov 26th, 2018
Hi Massimiliano, this widget was originally written as part of the Widget Course on writing widgets so it is not as fully featured as it could be. If you need access to these properties it would be relatively simple to add them yourself using LiveCode Builder, you could then share your version here. The Widget Course and this blog https://livecode.com/livecode-widgets-modifying-the-line-chart/ have example of how to add properties to widgets. I hope that helps. Kind regards Elanor

Rotated Text

Type

widget

Summary
A rotated text control. A rotated text control displays text rotated to a given number of degrees. O degrees being unrotated.
Description

A rotated text control. A rotated text control displays text rotated to a given number of degrees. O degrees being unrotated.

mouseUp

Type

message

Syntax
on mouseUp
Description

The message is sent when the widget is clicked.

foregroundColor

Type

property

Syntax
get the foregroundColor of widget
set the foregroundColor of widget to pColor
Summary
Sets the text color of the widget
Description

Use the property to control the text color of the widget.

rotation

Type

property

Syntax
get the rotation of widget
set the rotation of widget to pDegrees
Summary
The number of degrees the text displayed in the widget is rotated by.
Description

Use the property to set the amount the text displayed in the widget is rotated by. The default is 0 degrees which is unrotated, horizontal text. The etxt is rotated in a clockwise direction.

content

Type

property

Syntax
get the content of widget
set the content of widget to pText
Summary
The text to be displayed in the widget.
Description

Use the property to set the text that is displayed in the widgtet. The default text is “Default text”.

formattedHeight

Type

property

Syntax
get the formattedHeight of widget
Summary
Reports the height needed by the widget to display the full, rotated text.
Description

Use the

property to find the amount of space needed by the widget to display its full contents without scrolling.

formattedWidth

Type

property

Syntax
get the formattedWidth of widget
Summary
Reports the width needed by the widget to display the full, rotated text.
Description

Use the

property to find the amount of space needed by the widget to display its full contents without scrolling.