$if 0 ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ· PowerBASIC v3.20 ÚÄÄ´ DASoft ÇÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ· ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĶ Copyright 1995 ³ DATE: 1995-10-01 ÇÄ· ³ ³ FILE NAME BOX&BRDR.TXT º by ÔÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÄ º º ³ ³ º Don Schullian, Jr. º º ³ ÔÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ º º ³ A license is hereby granted to the holder to use this source code in º º ³ any program, commercial or otherwise, without receiving the express º º ³ permission of the copyright holder and without paying any royalties, º º ³ as long as this code is not distributed in any compilable format. º º ³ IE: source code files, PowerBASIC Unit files, and printed listings º º ÔÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ º ³ .................................... º ÔÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ $endif Boxes and borders are used extensively throughout the GUI world as they lend themselves well to the mouse-driven environment. They can just sit there like a lump or be made to light-up, click, move around, and a host of other cute tricks that keeps the user's mind off what he/she is doing d;) Anyhow, to get a box/border on the screen you need to send the top/left and bottom right corners, some colors, and how wide you want the border to be. Some of the borders have set widths and some even have set colors that they work with but the one thing they all have in common is that they were built with the DASoft color combinations in mind and that they all think that they are working on a "reversed" screen where color 0 = white & color 15 = black. This shouldn't pose too much of a problem as it has become the standard by which the world works. As events (windows) rule the GUI screens there is an extra set of border routines that allow you to draw the borders by calling them with a single element. Each of these have the same name as their counterpart but end in an "A". ( eg: GBoxBevelA ) It's all explained in A_BEVEL.DMO so have a look if you are using event arrays in your program. Have a look at fLoadDAScolor$ to get an idea of how I lay-out colors to create the illusion of 3-D using the VGA screen and it's 16 colors. You can of course change the colors using the ready-made colors our even create your own color combos. d83)