textarea with No Scrolls

Blitz3D Forums/Blitz3D Beginners Area/textarea with No Scrolls

bushsolo(Posted 2003) [#1]
Is it possible to disable the scrollbars in a textarea without disabling the whole textarea?


Beaker(Posted 2003) [#2]
One way you could do this is to make a very long text area and embed it into a more reasonable sized panel. You might have to use a userlib SendMessage command to keep the cursor on screen tho.
window=CreateWindow( "Simple syntax highlighting text editor",0,0,640,480 )

;textarea=CreateTextArea( 0,0,ClientWidth(window),ClientHeight(window)-96,window )
textareapan=CreatePanel( 0,0,ClientWidth(window),ClientHeight(window)-96,window )
textarea=CreateTextArea( 0,0,ClientWidth(window),3000,textareapan )
SetGadgetLayout textarea, 1,1,1,1