Author Topic: Multi-lines Textbox ?  (Read 21770 times)

0 Members and 1 Guest are viewing this topic.

Offline euklides

  • Forum Regular
  • Posts: 128
    • View Profile
Multi-lines Textbox ?
« 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.





Why not yes ?

FellippeHeitor

  • Guest
Re: Multi-lines Textbox ?
« Reply #1 on: December 20, 2018, 06:25:20 am »
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.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Multi-lines Textbox ?
« Reply #2 on: December 20, 2018, 08:18:32 am »
You can use my text frame library for something like this easily:  https://www.qb64.org/forum/index.php?topic=718.0
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

FellippeHeitor

  • Guest
Re: Multi-lines Textbox ?
« Reply #3 on: December 20, 2018, 08:25:11 am »
Is it an input routine with multiline?

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Multi-lines Textbox ?
« Reply #4 on: December 20, 2018, 08:58:47 am »
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.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

FellippeHeitor

  • Guest
Re: Multi-lines Textbox ?
« Reply #5 on: December 20, 2018, 09:50:35 am »
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?
« Last Edit: December 20, 2018, 09:54:01 am by FellippeHeitor »

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Multi-lines Textbox ?
« Reply #6 on: December 20, 2018, 10:26:41 am »
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.

Quote
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.  ;)
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

FellippeHeitor

  • Guest
Re: Multi-lines Textbox ?
« Reply #7 on: December 20, 2018, 10:31:29 am »
It should be in the *.BM.  ;)

I think it's missing.

Offline euklides

  • Forum Regular
  • Posts: 128
    • View Profile
Re: Multi-lines Textbox ?
« Reply #8 on: December 22, 2018, 05:54:46 am »
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 !



Why not yes ?