This is the ~EasyVision 2.0~ demonstration program number 1.
EasyVision is a collection of ~C functions~ and ~C++ classes~._ It will provide you with the tools to easily produce professional looking programs, in a fraction of the time normally needed for such elegance and performance!_ EasyVision was created to be ~powerful~, ~reliable~ and ~simple~ to use!_ This is not a library where you have to learn 3 billion new commands.
The library offers ~common C functions~ that can be used in any programming project._ It also offers ~five classes~ that will provide a complete, fully integrated ~user interface~, which looks and acts just like TURBO VISION from BORLAND!
You will be able to create and manage full featured ~windows~, complete with ~scrolling input fields~ and ~push buttons~._ A ~desktop~, a ~statusline~ and a ~menubar~ will get together to complete the interface._ Mouse support is available everywhere.
The ~F1~ key will always display an ~help window~, just like this one, and will be available ~everywhere in your program~, without you having to write a single line of code!_ You don't have to format the help text either._ The built in help system will format the text in the help window with ~word wrapping~!_ You write your help file in your favorite editor then use the ~help compiler utility~._ The help file resides on disk to minimize memory usage by the program._ Access to the help file is instantaneous._ An index to every help context is built in memory at program startup.
You should take a look at the other demo program._ It's a ~Tower's of Hanoi~ simulation that will solve this puzzle for you.
So, if you would like to take advantage of this library, just read the manual included in the archive ~EV_200.ZIP~, and within the hour you will be on your way to a new standard in ~quality~ and ~ease of use~ with the EasyVision library!
Remy Gendron
Author of EasyVision
HLPEND
MENUBAR
System menu
HLPCTX 100 HC_MENU_SYSTEM
~SYSTEM~
This menu contains the ~refresh~ and ~about...~ menu items.
HLPEND
Demo menu
HLPCTX 200 HC_MENU_DEMO
~DEMO~
This menu will allow you to open a demonstration window or to exit the program.
HLPEND
Examples menu
HLPCTX 300 HC_MENU_EXAMPLES
~EXAMPLES~
This menu does not provide any functions._ It only has dummy menu items.
HLPEND
MENUITEMS
refresh
HLPCTX 101 HC_MENU_SYSTEM_REFRESH
~Refresh~
This will redraw the desktop, the statusline and the menubar._ This function is available only when all windows are closed.
HLPEND
about
HLPCTX 102 HC_MENU_SYSTEM_ABOUT
~About~
This will open an information window._ It displays many characteristics of common windows.
HLPEND
open window
HLPCTX 201 HC_MENU_DEMO_OPEN
~Open window~
This will open a window with input fields and push buttons.
HLPEND
exit program
HLPCTX 202 HC_MENU_DEMO_EXIT
~Exit program~
If you want to terminate the program, this is how you do it!
HLPEND
Offline items
HLPCTX 301 HC_MENU_EXAMPLES_OFFLINE
~Offline~
Menu item can be set to be ~online~ or ~offline~._ When offline, they can't be selected.
HLPEND
Do nothing item
HLPCTX 302 HC_MENU_EXAMPLES_DUMMY
~Nothing~
This item is just sitting there, doing nothing._ It's just looking at the wheels go round and round...
HLPEND
About window
HLPCTX 1000 HC_WINDOW_ABOUT
~About window~
This sample window has only an OK button._ You push it, or the enter key, to close the window.
You can move windows by dragging their frames around the screen._ This option can be set ON or OFF when you create a window._ This window can be moved around._ Try it!
You should also notice that ~this window's background is WHITE~._ EasyVision can use bright background colors._ They are enabled by the desktop's {settextmode} member function.
What you are reading is the default help text for this window._ Buttons and input fields can have help context of their own, that will override the window's default help text._ However, the button here does not have one._ When this is the case, buttons or input fields with no help context number will use the window`s default help context.
HLPEND
Demo window
General help
HLPCTX 2000 HC_WINDOW_DEMO
~Demo window~
This is the window's default help context.
The buttons and input fields in this window could each have their own help context number._ As this is not the case here, they display the window's default help context.
The buttons here will allow you to move the window around._ The 'Esc' button will close the window.
An input field can be configured to allow only a specified set of characters to be entered._ It can automatically promote all inputs to uppercase._ It can refuse an empty input or accept it._ It will remove all trailing spaces from the answer._ It won't allow an answer to begin by spaces._ And many more options...
The four input fields here show some of those possibilities.