Jump to content
  • entries
    941
  • comments
    5,894
  • views
    867,763

Text Area Widget


Josh

2,519 views

 Share

The text area widget is now available on the beta branch on Steam, for Windows and Lua only at this time.

 

The text area is a read-only widget at this time. However, the text is all selectable, and in the future will be able to be copied to the clipboard. This widget creates two scroll bars which appear only when needed, for horizontal and vertical scrolling. The multiline text selection and scrolling was pretty difficult to implement, but the results are really nice.

 

blogentry-1-0-38439700-1470421101.jpg

 

I'm not going to turn this into a full text editor unless I decide to implement everything a modern code editor needs; autocomplete, code folding, and syntax highlighting. Scintilla does a good job of this, so there is no need at this time for me to duplicate that work. However, it is nice to know we could do that with a little more work if needed at some point in the future.

 

In Leadwerks Editor, this will be used for the script output log and the program log.

 

At this point, I have all the pieces I need to utilize Leadwerks GUI into Leadwerks Game Launcher and get this released for Windows and Linux. I'm going to try to find a way to detect big picture mode so the game launcher will launch in fullscreen mode without a titlebar when this happens.

  • Upvote 4
 Share

4 Comments


Recommended Comments

The width calculation for the horizontal scrollbar isn't 100% perfect yet, but it's close to finished.

Link to comment

Pfft, it'll be even MORE perfect more MY dev console tongue.png

 

Read only text-viewer widget + text input widget under it = <3

 

Also, Josh does this just add the scrollbars at the start or does it not create scrollbars until they're needed?

Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...