I am trying to make a command window(user types in text) and need to put in place a scrollbar, to look back at what was typed, on the NSTextField. thx
For vertical scrollable bar use the x and y axis. Set the overflow-x:hidden; and overflow-y:auto; that will automatically hide the horizontal scroll bar and present only vertical scrollbar. Here the scroll div will be vertically scrollable.
NSTextField
is usually used only for one line text so You need to use NSTextView
instead NSTextField
to achieve scrolling.
NSTextView Reference.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With