QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: Fifi on September 10, 2018, 04:37:11 pm
-
Hi all,
I would like to change the default size (lcolumns and rows) of a console prior to run a program into it.
I didn't find any sample to do it.
Any help would be truly appreciated.
T.I.A.
Fifi
-
I don't think you can, though. Let's see what the others suggest.
-
Hi Fellippe,
Thanx for your answer.
So, should I use another window than the console ?
If so, how could I do that (a tiny sample code would be appreciated using my loan.bas sample with comumn = 120 and rows = 30 but also with the capability to scroll the result up and down).
BTW, I've the same problem to adapt this loan.bas sample into a form with InForm (what kind of container to use fro the result)?
Any help with the InForm version of this sample would be truly appreciated.
T.I.A.
Fifi
-
With InForm, you could probably have a ListBox control and add each output line to it with the AddItem method (https://github.com/FellippeHeitor/InForm/wiki/List-methods).
You can also set the list's AutoScroll property to true, so it'll emulate a console.
That would mimick a console window, and the output would be scrollable.
If you consider the overhead, you'd probably feel it's more reasonable to reformat your output to the default 80x25 of a console window.
Now, to truly take advantage of InForm, you'd design an interface with textbox controls for input and would have the output show in labels after a button was clicked to calculate results. Then it'd be a true GUI app.
-
:-D it will TRY something and then...
-
:-D it will TRY something and then...
Definitely not the way, Petr.