It is currently October 23rd, 2018, 9:55 am


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Scrollbar fix to the ServerGui.
PostPosted: October 8th, 2012, 2:31 am 
User avatar

Joined: May 28th, 2012, 12:03 am
Posts: 25
The most annoying thing in the world to me at the moment is when I'm trying to read the console output and new messages keep bumping the window contents about.

Could it be possible to have it not jump down as new messages are typed when the scroll bar is not at the bottom of the screen already?

Cheers :)

_________________
=== MeinKraft 24/7 ===
Server Owner & Code Developer


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Scrollbar fix to the ServerGui.
PostPosted: October 9th, 2012, 1:26 am 
fCraft Developer
User avatar

Joined: May 21st, 2011, 10:53 pm
Posts: 1386
It'd be a big improvement, but also surprisingly hard to pull off.

Console was designed with single-threaded applications in mind (so program is either reading or writing text, not both at the same time). To change the way it works, I have to re-create a big chunk of existing functionality. That means checking every key press individually, assembling characters one by one into strings, scrolling a message that's too long off-screen, handling delete/backspace manually, tracking the cursor and moving it with arrow keys manually, handling paste, handling window resizing, etc.

I did try to implement all this once, but it ended up being very wonky, and had its own share of annoyances. Maybe there's a better way, but I don't currently know of one.

Further reading


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net