Dec 112017
This is a modification of the w4display() function provided by Sequiter Software in their CodeScreens package. It displays a message in a window, allowing you to set the color of the border, background, and text. | |||
---|---|---|---|
File Name | File Size | Zip Size | Zip Type |
DISPWIND.C | 3848 | 1301 | deflated |
READ.ME | 1176 | 624 | deflated |
Download File DISPWIND.ZIP Here
Contents of the READ.ME file
Greetings!
This source code is presented for your editing and viewing pleasure. It
grew out of a desire to add more "flair" to my programs, and to provide
some visual clue as to the type of message that was being displayed, i.e.
I wanted error messages to come up in red.
The source code is pretty straightforward, and hopefully commented
sufficiently. (I'm a great believer in overcommenting C code, having had to
maintain one too many programs where the programmer thought if it was hard
to write, it should be hard to read.) One change I may make in the future
in on line 54: If only the title is passed for the argument, it calls the
original w4display with no title and the title becoming the message. This
would display the window in the default colors of white on black. I left
this alone because I didn't want to mess with changing this and testing, and
because I don't intend to use this function without providing a title.
If you have any questions or comments about this code, or if you find it
useful, please leave me a message on the Sequiter Software BBS. CULater.
Jim Carroll
EDS/Kansas Title XIX
This source code is presented for your editing and viewing pleasure. It
grew out of a desire to add more "flair" to my programs, and to provide
some visual clue as to the type of message that was being displayed, i.e.
I wanted error messages to come up in red.
The source code is pretty straightforward, and hopefully commented
sufficiently. (I'm a great believer in overcommenting C code, having had to
maintain one too many programs where the programmer thought if it was hard
to write, it should be hard to read.) One change I may make in the future
in on line 54: If only the title is passed for the argument, it calls the
original w4display with no title and the title becoming the message. This
would display the window in the default colors of white on black. I left
this alone because I didn't want to mess with changing this and testing, and
because I don't intend to use this function without providing a title.
If you have any questions or comments about this code, or if you find it
useful, please leave me a message on the Sequiter Software BBS. CULater.
Jim Carroll
EDS/Kansas Title XIX
December 11, 2017
Add comments