Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Recommended Posts

To get used to the UAK workflow I decided to make a simple notepad like application. It was going to be notepad just with a side panel file system to group notes in a logical manner based on related note content. 

I went to implement this and realized there is no way to have a writable TextArea. I have to create a hidden TextField, set it to TEXTCHANGEACTIONEVENT, then do all this hacky round about ways to make the text area be populated in a way that makes sense.

Is something like a writable TextArea being considered for a widget?

Link to post
Share on other sites

An editable multi-line text editor is pretty difficult, and the list of feature requests would be quite large. There's syntax highlighting, code folding, intellisense / linting, the list goes on and on. For my own application, I decided to rely on Visual Studio Code instead of using a built-in script editor.

The best solution is probably to integrate an existing library into the interface, maybe Scintilla or another library. Does anyone have any suggestions?

  • Like 1
Link to post
Share on other sites

oh yes certainly something like that shouldn't be provided by a framework for the purpose UAK serves. I'm talking about a simple TextBox like the one in WPF or the TextEdit widget from QT a simple non rich textbox.

I'm sure you have lots of stuff you're working on but I wanted to suggest it. If I come up with an elegant solution I'll be sure to post about it!

Link to post
Share on other sites

I think it is possible. The text field already contains most of the required functionality, and on Linux the word wrapping is performed manually, so I could use that same code to break up the text into an array of separate lines. Lots of work to get it right, but it is possible in the future.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   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...