1 #include <Application.h>
5 class window
: public BWindow
{
7 window() : BWindow(BRect(30, 30, 300, 300), "BTextView test", B_DOCUMENT_WINDOW
, B_ASYNCHRONOUS_CONTROLS
)
9 BTextView
*textview
= new BTextView(Bounds(), "textview", Bounds(),
10 B_FOLLOW_ALL
, B_WILL_DRAW
);
12 textview
->SetText("Type into the Haiku BTextView!");
13 textview
->MakeFocus();
18 class application
: public BApplication
{
21 :BApplication("application/x-vnd.test")
25 virtual void ReadyToRun()
27 (new window())->Show();