Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
TextView.CreateWithSize
Creates a new text view inside the window with the given rectangle.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
TextView | 9.2 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |
MBS( "TextView.CreateWithSize"; WindowRef; x; y; w; h ) More
Parameters
Parameter | Description | Example |
---|---|---|
WindowRef | Window Reference is the unique OS level window ID. You can obtain this by using the Window.FindByTitle or Window.FindByIndex functions. Pass zero to access the frontmost window. | 0 |
x | The left coordinate in the window. | 0 |
y | The top coordinate in the window. | 0 |
w | The width of the text view in the window. | 100 |
h | The height of the text view in the window. | 100 |
Result
Returns text view reference number on success.
Description
Creates a new text view inside the window with the given rectangle.Use TextView.Release later to destroy the text view.
If you use a register (tab controls) on the window, be aware that the text view actually is in front of the register (tab controls). You may hide the text view if another register is visible.
Text view reference numbers are starting at 81000 and counting up for each new text view.
See also
- ImageView.CreateWithSize
- MapView.CreateWithSize
- TextView.Release
- Window.FindByIndex
- Window.FindByTitle
This function checks for a license.
Created 15th April 2019, last changed 15th April 2019