Board Logo
« BB__MAINWIN »

Welcome Guest. Please Login or Register.
Sep 25th, 2017, 7:05pm


Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: BB__MAINWIN  (Read 123 times)
uncleBen
Senior Member
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1679
xx BB__MAINWIN
« Thread started on: Aug 27th, 2010, 5:04pm »

I completely rewrote the MAINWIN article.

The MAINWIN command only lets you set the number of columns (and rows) of the non-GUI text window.

The changes affect the JB environment globally. I'd really suggest you don't mess with the size of the mainwin in programs that you share with other people because it is annoying.

The default values (after installation) need verifying.

The MAINWIN command is not suppressed by the NOMAINWIN command: the size of the mainwin is changed globally even if the window itself is not displayed.

The MAINWIN command does not work with variables. (This made me discover that values 0 0 make the window displayed maximized.)

Please test the example codes first.

----------

I couldn't understand how one makes indented paragraphs in the Wiki editor and how I am supposed to remove the excess empty lines that the article now contains. Sorry.
« Last Edit: Aug 27th, 2010, 5:23pm by uncleBen » User IP Logged

Passing arrays to subroutines, functions that work with any types, quick string indexing and much more - JBExtensions.

Tired of Minesweeper? Try TomatoSweeper
jaba
Global Moderator
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 1049
xx Re: BB__MAINWIN
« Reply #1 on: Aug 27th, 2010, 5:30pm »

uncleBen; So you would not tell the new user that the mainwin can be used for text mode display, or that it can be used for simple text-based programs? The help file refers to this and it seems useful to me. Just wondering.
Jack
User IP Logged

JACK - Windows 8.1 64-bit; 2.5 GHz Intel i3 processor; 6.00 GB RAM;
Facundo
Moderator
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 1289
xx Re: BB__MAINWIN
« Reply #2 on: Aug 27th, 2010, 5:56pm »

Quote:
I couldn't understand how one makes indented paragraphs in the Wiki editor and how I am supposed to remove the excess empty lines that the article now contains. Sorry.
A paragraph is the > (alt+62)
Are you using the wikitext mode, or the visual one?
User IP Logged

cundo aka MSlayer
uncleBen
Senior Member
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1679
xx Re: BB__MAINWIN
« Reply #3 on: Aug 27th, 2010, 5:57pm »

Quote:
uncleBen; So you would not tell the new user that the mainwin can be used for text mode display, or that it can be used for simple text-based programs? The help file refers to this and it seems useful to me. Just wondering.


The help file says this:

Quote:
This sets the width or width and height of a program's main window. This is specified in colums and rows of text according the font of the mainwindow. This statement is usually placed at the beginning of the program code.


It has nothing to do with creating a main window. Any user will get the main window until they learn to suppress the creation of it with NOMAINWIN.

And since the command in one program can affect other JB programs, I'd suggest not using it. To me it is annoying if I run a snippet of code and it changes the window size I have chosen for JB.

I would rather have new users not be aware the command exists smiley
« Last Edit: Aug 27th, 2010, 6:00pm by uncleBen » User IP Logged

Passing arrays to subroutines, functions that work with any types, quick string indexing and much more - JBExtensions.

Tired of Minesweeper? Try TomatoSweeper
jaba
Global Moderator
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 1049
xx Re: BB__MAINWIN
« Reply #4 on: Aug 27th, 2010, 7:26pm »

This from the help file "Text mode display" looks "tantalizing"! You would not include something like it?
Quote:
TEXT DISPLAY IN THE MAINWIN
Just BASIC is designed for building Windows programs. It is also possible to write rudimentary text mode programs.

By default, each Just BASIC program has a main window, called the "mainwin." This is a simple text display with scrollbars.
User IP Logged

JACK - Windows 8.1 64-bit; 2.5 GHz Intel i3 processor; 6.00 GB RAM;
Facundo
Moderator
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 1289
xx Re: BB__MAINWIN
« Reply #5 on: Aug 27th, 2010, 7:55pm »

I think I understand the discussion, MAINWIN is the output window, the console, but it is also a command.
User IP Logged

cundo aka MSlayer
tsh73
JB-Supporter


member is offline

Avatar




PM

Gender: Male
Posts: 3553
xx Re: BB__MAINWIN
« Reply #6 on: Aug 27th, 2010, 11:41pm »

So we just need make two topics.
Mainwin (command)
Mainwin (non-gui programming)
, something like that.
User IP Logged

Q: "And if I took your codes and compile them, and sell them for a profit"?
A: Go ahead. I had my share of good then I coded it for fun, if you can make better use of it - please do.
(enjoying JB 1.01 on WinXP, netbook and desktop)
uncleBen
Senior Member
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1679
xx Re: BB__MAINWIN
« Reply #7 on: Aug 28th, 2010, 03:19am »

The whole confusion comes from messing up

NOMAINWIN - suppresses the creation of the text-mode window
MAINWIN - specifies the width and height of the text-mode window

Even though it looks they are opposites, they do completely different things.

As to the window itself being called mainwin, I think this is what leads to the confusion about these commands. Perhaps it could be called the "main window".
User IP Logged

Passing arrays to subroutines, functions that work with any types, quick string indexing and much more - JBExtensions.

Tired of Minesweeper? Try TomatoSweeper
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls