Platforms to show: All Mac Windows Linux Cross-Platform

The class TextArea

class TextArea

class, Controls, class TextArea, Not console safe, Plugin version: 9.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The built in textarea class in REALbasic.
Example:
// make a PDF from a textarea in Cocoa REALbasic target:

// find view
dim n as NSViewMBS = TextArea1.NSViewMBS
if n = nil then
MsgBox "Only in Cocoa!"
Return
end if

// make pdf data
dim s as string = n.dataWithPDFInsideRect(0,0,n.frame.Width, n.frame.Height)

// save
dim f as FolderItem = GetSaveFolderItem("", "test.pdf")

if f<>Nil then

dim b as BinaryStream = BinaryStream.Create(f, true)

b.Write s

end if
Notes: Requires RB 2009r4 or newer.

This class has no sub classes.


The items on this page are in the following plugins: MBS REALbasic Cocoa Plugin.




Links
MBS REAL studio Chart Plugins - Pfarrgemeinde Messdiener Nickenich