BookmarkSubscribeRSS Feed

Scroll bar on text box

cerdmh

Community Trekker

Joined:

Apr 2, 2017

Hi

 

How can I add Y scroll bar to a text box?

 

Erez

1 REPLY
gzmorgan0

Community Trekker

Joined:

Jul 25, 2016

Is this what you are looking for? 

Names Default To Here( 1 );
win = New Window( "Example",
	sb = Scroll Box(
		Size( 250, 40 ),
		tb = Text Box(
			"First Item, Second Item, Third Item, Fourth Item, Fifth Itemmmmmmmmmmmmm"
		)
	)
);
win << Set Window Size( 400, 200 );
tb << set wrap(1000);
sb << set scrollers(1,0); //scroll only in x not in Y
sb << Set Auto Scrollable( 1 );