Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Editbox multiline scrollbar

Author
Message
Chmava
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location:
Posted: 19th Apr 2019 07:21
How do you make editbox in multiline mode show a scroll bar if there is more line than height?

If there isn't, is this not a lack of features by AppGameKit group?

Any comment appriciated!
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 19th Apr 2019 23:16 Edited at: 20th Apr 2019 02:52
This is not supported by default.
You can simulate it using SetEditBoxScissor() to crop the viewable area but you have to make the scrollbar yourself
Chmava
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location:
Posted: 20th Apr 2019 05:40
There is not a function for total height, it is unable to set full height like normal text.
There is then no way to determine edit box content height to make a scroll bar.

I guess we have to switch engine and pay more for production cost.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 20th Apr 2019 07:15 Edited at: 20th Apr 2019 07:16
You can just make it an arbitrary height and use seteditboxscissor() to clip the text

Login to post a reply

Server time is: 2024-11-22 21:40:16
Your offset time is: 2024-11-22 21:40:16