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 Studio Chat / Scrolling an Edit Box

Author
Message
Muckypaws
AGK Developer
12
Years of Service
User Offline
Joined: 21st Oct 2011
Location:
Posted: 17th Jan 2023 00:31
Hello All,

I couldn't find an answer with search so apologies if this has been asked before.

How do you enable scroll handles on Multiline Editboxes that exceed the edit box window size?

Using cursor keys work for basic functionality, but scroll wheel or sliding bar on the right of the edit box you'd see in other GUI controls I can't seem to activate.

In this example I have multiline text but appears to be no way for the user to scroll using common methods, I feel I'm missing a command or something to enable this?


[href]https://www.facebook.com/WonkyPix
http://www.wonkypix.com
http://www.appstore.com/jsecconsultancyltd[/href]

Attachments

Login to view attachments
haliop7
2
Years of Service
User Offline
Joined: 1st Mar 2022
Location:
Posted: 17th Jan 2023 03:12
I do not think it has a scroll bar.

However, the simplest is 2 buttons up and down.
You save your entire. text string in an Original Var
But you show a temp string var on the string
Every time you press each of the buttons, it will reset the temp string var and recopy it again at the designated line.

Then creating a scroll bar after achieving this will be easy.

Using the height of the edit box. in a percentage calculation towards the number of lines (keeping in mind the text font size, line spacing, etc)

I will be done this a few times. I think with normal text.

I think there should be an automated scroll bar for edit boxes if this non, it should be on features to add.

It is also always smart to keep temp string vars for GUI and others for internal, as draw calls may vary. Lowering fps or drawing outside of the screen will automatically cost the battery some extra juice.
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 17th Jan 2023 14:37
you could make a sudo scroll bar and attach it to the window by setting its pos to the windows position. would behave remarkabley similar to an actual window

Login to post a reply

Server time is: 2024-03-02 08:00:16
Your offset time is: 2024-03-02 08:00:16