notepad?

BlitzPlus Forums/BlitzPlus Programming/notepad?

First create your window:
my_window=createwindow("my application",x,y,width,height,desktop(),style) ;attaches the window to desktop

Then a canvas if you need it:
my_canvas=createcanvas(0,0,clientwidth(my_window),clientheight(my_window),my_window,style) ; attaches the canvas to my_window

Now you can attach your textarea either to the window or the canvas (if you created the canvas). - In exactly the same way as you attached the canvas to my_window - so that my_window becomes the parent of my_canvas.

The 'group' refers to the handle that was passed to your variables (my_canvas or my_window - as above) when you created them - this will be the parent of your textarea.
So replace 'group' below with either my_window or my_canvas - which ever you want to attach it to..

my_textarea=createtextarea(x,y,width,height,group,style)