QB64.org Forum
QB64 Team Software => InForm Discussion => Topic started by: euklides on December 20, 2018, 04:53:37 am
-
Is it possible to have a multi-line text box ?
And there is no word wrap for the textbox ...
Is inserting chr$(10) to have a new line in the same textbox a good idea, for instance ?
With VBA (Excel, word) there is no problem to this, and I wonder it is not possible with Inform.
This is a hindrance for me to use Inform.
-
Hi euklides
InForm doesn't have a multiline text control yet and it is a long standing request https://github.com/FellippeHeitor/InForm/issues/19
Until I manage to write it, setting the word wrap property or adding chr$(10) won't have any effect on existing text boxes.
The word wrap property is intended for multiline Labels.
Fellippe.
-
You can use my text frame library for something like this easily: https://www.qb64.org/forum/index.php?topic=718.0
-
Is it an input routine with multiline?
-
It creates an area where you can operate the text completely independently. Just use the FUNCTION InputFrom$ (Frame, Promt$) routine to input from a frame instead of just printing out to it. It only returns string values ATM, so you’ll need to take VAL() of them, and there’s no input validation for bad characters or such.
-
I don't see an easy way for euklides to merge your functionality into InForm. Besides what's really puzzling and has kept me from adding a multiline textbox so far is the free cursor/mouse manipulation that's expected of this type of control.
Truth is: there is a semifunctional multiline textbox in InForm's code right now, but it hasn't matured enough to be made public yet and I have no estimated delivery date for now.
PS: InputFrom$ is in the .BM?
-
It should be in the *.BM. ;)
Sorry, I don’t think it’d be that easy to include with InForm either. I didn’t notice the forum this was posted under.
This is a hindrance for me to use Inform.
When I read the above, I thought the OP was looking for a non-InForm method to create an input box. Apparently, I need more coffee and longer naps. I recently started work on a new novel this month, and it’s got most of my focus, so I find myself skimming things rather than taking time to fully read/comprehend them.
Honestly, it’d probably be more work than it was worth, to incorporate the whole frame library into an existing InForm project. Apologies for any issues my misunderstanding may have caused. ;)
-
It should be in the *.BM. ;)
I think it's missing.
-
Thank's all for your answers...
FellippeHeitor wrote : « there is a semifunctional multiline textbox in InForm's code right now, but it hasn't matured enough to be made public yet and I have no estimated delivery date for now. »
Hoping it will come one day !
The multiline textbox would be very useful for showing little texts, modify them easily, also copying or pasting.
(Useful for instance in personnal management programs.)
Whith VBA Excel, Word, I can do this, but my "dream" would be to have ".EXE" applications, without using MS Office apps... Only QB64 could do this for me !
Merry Chrismas !