BBS: Inland Empire Archive Date: 04-03-92 (11:15) Number: 70 From: MICHAEL MALLEY Refer#: NONE To: RICK PEDLEY Recvd: NO Subj: MDA text attributes Conf: (2) Quik_Bas
Hello Rick, I was wondering if you got the message I sent you covering the attribute for monochrome. It seems that a lot of my mail is going into the bit bucket again {SIGH}. Anyway, I thought I'd tell you how I handle programming for multiple monitors, and that way maybe you'd get some good ideas for yourself. What I do, is at the beginning of the program, I check to see if the monitor is monochrome, or a command line switch was set to force mono or color. I then use an IF block to set variables like the following, but of course I use more variables to accomodate things like scrolling bars, error messages, etc... DEFINT A-Z ... IF Mono THEN Fore = 7 Back = 0 WindowFore = 0 WindowBack = 7 ELSE Fore = 7 Back = 1 WindowFore = 0 WindowBack = 3 END IF Then throughout the program, I merely use these variables to set color values which results in easy to read code. If I decide to make a change, one change affects the whole program without having to find every statement that affected a particular item. I hope this helps out a little. * SLMR 2.1a * Real men *do* cry... --- Maximus 2.01wb * Origin: UltraTech - Nashville, TN (615) 356-0453 {HST} (1:116/30)
Books at Amazon:
Back to BASIC: The History, Corruption, and Future of the Language
Hackers: Heroes of the Computer Revolution (including Tiny BASIC)
Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution
The Advent of the Algorithm: The Idea that Rules the World
Moths in the Machine: The Power and Perils of Programming
Mastering Visual Basic .NET