Dec 082017
 
Good Professional windows toolbox for use with C. V2.021.
File PROWINDC.ZIP from The Programmer’s Corner in
Category C Source Code
Good Professional windows toolbox for use with C. V2.021.
File Name File Size Zip Size Zip Type
BROCHURE.EXE 44910 22172 deflated
BROCHURE.HLP 20640 8003 deflated
BROCHURE.MNU 993 594 deflated
PROWINDC.DOC 46381 8089 deflated
PROWINDC.H 1692 743 deflated
PROWINDC.LIB 10752 4724 deflated
READ-ME.NOW 4707 1822 deflated
REGISTER.FRM 2615 916 deflated
SUPPORT.DOC 1028 580 deflated
TC_MODEL 950 470 deflated
TESTPRO.C 656 326 deflated
TESTPRO.PRJ 25 25 stored

Download File PROWINDC.ZIP Here

Contents of the PROWINDC.DOC file








P r o W i n d o w s (tm) * L I T E *
Version 2.02TC


LEGAL NOTICE_____________________________________________________

This software is distributed under the "ShareWare" concept. You
are hereby granted 30 days to review this product after which you
are required to (a), pay the registration fee as described
elsewhere in these files, or (b), remove all copies of this
software from your possession.

If you are a registered user, then programs you write using
ProWindows *LITE* - Version 2.02 may be used, given away, or sold
without any additional license or fees. You are, however,
specifically required to place the appropriate copyright message
(defined below) in the user documentation. If, and only if, there
is no documentation, you are required to implement the ProWindows
library subroutine copyright() atleast once during the normal
execution of your program. You are also required to leave the
embedded copyright notice intact within the executable file.

This software is protected by both United States copyright law and
international treaty provisions.


Text of Required Notice__________________________________________

This product was created in part with ProWindows *LITE* - The
Professional Window Management System. For more information on
the ProWindows family of products, write to:

Daniel P. Stasinski
Systems Management Consultant
30 North Street
Willits, CA 95490
(707) 459-4358


WARRANTY_________________________________________________________

This product is sold "AS IS" and I specifically disclaim all
warranties, expressed or implied, including but not limited to
implied warranties of merchantability and fitness for a particular
purpose. In no event shall Daniel P. Stasinski be liable for any
loss of profit or any other commercial damage, including but not
limited to special, incidental, consequential or other damages.















ProWindows *LITE* - Version 2.02TC
Documentation


Table of Contents________________________________________________
Table of Contents
Table of Contents
Table of Contents

Section 1.
Requirements & Support ......................... 3
ProWindows *PLUS* Information .................... 4

Section 2.
Method of Operation .............................. 5
Error Handling ................................... 6
Global Variables ................................. 7
Data Structures .................................. 9

Section 3.
attr ............................................. 10
clearwindow ...................................... 10
copyright ........................................ 10
initpro .......................................... 11
popwindow ........................................ 12
removewindow ..................................... 14
titlewindow ...................................... 14
wprint ........................................... 15
wcprint .......................................... 15
cwprint .......................................... 15
cwcprint ......................................... 15

Section 4.
Memory Models .................................... 17





























(c) Copyright 1988-1989 Daniel P. Stasinski
Page - 2




ProWindows *LITE* - Version 2.02TC
Documentation


SECTION 1 - Requirements and Support_____________________________
SECTION 1 - Requirements and Support
SECTION 1 - Requirements and Support
SECTION 1 - Requirements and Support

General Requirements_____________________________________________
General Requirements
General Requirements
General Requirements

Hardware - IBM PC, PC/XT, AT, or Compatible Computer
Mono, CGA, and EGA (in CGA mode)
1 Disk Drive
512K RAM minimum
DOS 2.1 or higher


Pro. Version Required Software Version

2.00TC Borland Turbo C 1.5 or higher
2.00QB Microsoft QuickBASIC 4.0 or higher



Software Support_________________________________________________
Software Support
Software Support
Software Support

Registered users of ProWindows *LITE* are offered almost unlimited
support. If you need assistance, just mail a letter to the
address below and I will respond as fast as humanly possible.
If it is an emergency, you may call me at (707) 459-4358, Monday
through Friday, from 11:00 am to 5:00 pm (California time).

If you discover a bug (I hope there are none), report it
immediately and it will be corrected and made available with the
next update.


Daniel P. Stasinski
Systems Management Consultant
30 North Street
Willits, CA 95490





















(c) Copyright 1988-1989 Daniel P. Stasinski
Page - 3




ProWindows *LITE* - Version 2.02TC
Documentation


FOR THE SERIOUS PROGRAMMERS______________________________________
FOR THE SERIOUS PROGRAMMERS
FOR THE SERIOUS PROGRAMMERS
FOR THE SERIOUS PROGRAMMERS

ProWindows *PLUS* and ProDesigner
ProWindows *PLUS* ProDesigner
ProWindows *PLUS* ProDesigner
ProWindows *PLUS* ProDesigner
only $37.95 (plus $2.50 S/H) for the dual package

For QuickBASIC - NOW Available
QuickBASIC
QuickBASIC
QuickBASIC
For Turbo C - NOW Available
Turbo C
Turbo C
Turbo C

ProWindows *PLUS* is the ultimate professional Software
ProWindows *PLUS* Software
ProWindows *PLUS* Software
ProWindows *PLUS* Software
Development System. It adds dozens of new, and many enhancements
Development System
Development System
Development System
to the existing ProWindows *LITE* routines.

NEW *PLUS* routines include:
NEW *PLUS* routines include:
NEW *PLUS* routines include:
NEW *PLUS* routines include:

GridMouse - Mouse programming will never be easier.
PopHelp - Instant Full Color Help Screens.
PopMenu - vertical or horizontal menus.
PopList - vertical or horizontal scrolling menus.
PullMenu - pull down (QB style) menus.
GridMenu - X-Y grid list with scrolling.
PopCalander - instant calanders with date highlight.
PopCalc - pop up calculator with tape and paste.
FillScreen - fills the screen with pattern and color.
Validate - multi-answer validator.
Query - Single line entry editor.
GetColor - Custom color coordinator.
ParseCom - Dos command line parser.
CallUEvent - Recursive Multiple User Event Processor.

and much much more...........
and much much more
and much much more
and much much more

When using ProDesigner, creating all type of menu's, entry
ProDesigner
ProDesigner
ProDesigner
screens, and help screens is a snap. You use the ProDesigner easy
ProDesigner
ProDesigner
ProDesigner
to use Menu Editor to create or modify each of your menus. Then
Menu Editor
Menu Editor
Menu Editor
you use the Help Editor to create FULL COLOR, single or multi
Help Editor FULL COLOR,
Help Editor FULL COLOR,
Help Editor FULL COLOR,
page, help screens which can correspond to ANY menu selections, or
can be made to appear instantly anywhere in your program.

ProDesigner can also generate most of the support source code for
ProDesigner
ProDesigner
ProDesigner
each of these functions.


***** NOTICE *****
***** NOTICE *****
***** NOTICE *****
***** NOTICE *****

Registered users of ProWindows *LITE* - Version 3.00 will recieve
Registered users of ProWindows *LITE* - Version 3.00 will recieve
Registered users of ProWindows *LITE* - Version 3.00 will recieve
Registered users of ProWindows *LITE* - Version 3.00 will recieve
a $10.00 discount towards the purchase of ProWindows *PLUS* and
a $10.00 discount towards the purchase of ProWindows *PLUS* and
a $10.00 discount towards the purchase of ProWindows *PLUS* and
a $10.00 discount towards the purchase of ProWindows *PLUS* and
ProDesigner.
ProDesigner.
ProDesigner.
ProDesigner.









(c) Copyright 1988-1989 Daniel P. Stasinski
Page - 4




ProWindows *LITE* - Version 2.02TC
Documentation


SECTION 2 - Method of Operation__________________________________
SECTION 2 - Method of Operation
SECTION 2 - Method of Operation
SECTION 2 - Method of Operation

ProWindows *LITE* & *PLUS* is more than just a windowing module,
in a way, it is more like a special operating system. Both of
these packages are based upon the PRO-WLS (Professional Window
PRO-WLS
PRO-WLS
PRO-WLS
Logic System) unit. The PRO-WLS unit manages every function used
PRO-WLS
PRO-WLS
PRO-WLS
to create, print to, clear, and finally, remove a window.

When you call the popwindow function, many important procedures
popwindow
popwindow
popwindow
take place. First, PRO-WLS saves the portion of the current
PRO-WLS
PRO-WLS
PRO-WLS
screen you are about to place the window over. Then, using a
proprietary compression algorithm, the old screen is squeezed to
sometimes less that 80% it's original size. This is intended to
save you plenty of memory space. Also, your compressed screen is
stored in far memory so you will save that valuable data segment
far
far
far
space too.

After compression, every parameter you gave popwindow is placed
popwindow
popwindow
popwindow
onto the window stack. The window stack is used to tell the other
ProWindows functions where and how they can place text within the
intended screen. In addition, it also holds vital information as
to how your old screen is to be decompressed and redisplayed when
you call the removewindow function. This version can display 100
removewindow
removewindow
removewindow
simultaneous windows.

All this happens in about 1/20th of a second.

When you call the removewindow function, the exact opposite
removewindow
removewindow
removewindow
happens. The PRO-WLS unit locates your old screen, decompresses
PRO-WLS
PRO-WLS
PRO-WLS
it, and places it back on your current screen, and at the correct
location too. Cleanup procedures automatically free the memory
where your window was stored. Never is a byte wasted.

Nothing could be easier.






















(c) Copyright 1988-1989 Daniel P. Stasinski
Page - 5




ProWindows *LITE* - Version 2.02TC
Documentation


Error Handling___________________________________________________
Error Handling
Error Handling
Error Handling

ProWindows *PLUS*, by design, is a very delicate system. It's
error handling procedures were designed so that in the event of a
major error, the program terminates. As you may realize, this
forces you to write programs with special attention to accuracy.

When a fatal occurs, an error message is displayed, and the Turbo
C exit(int error) function is called, with the ProWindows *PLUS*
exit(int error)
exit(int error)
exit(int error)
error number as the argument.

Possible errors are:

1 - ProWindows *LITE* not initialized.
2 - Memory allocation error.
3 - Not enough memory in far heap.
4 - No window to remove.
5 - Too many windows.
6 - Not a supported video mode.
9 - Invalid copyright.

Error 1 is a result of the failure to call 'initpro' prior to
creating a pop up window. Simply stated, if you do not call this
feature, you can not create windows.

Error 2 will probably result if there is not enough memory while
the ProWindows WLS (Window Logic System) is storing or restoring a
screen.

Error 3 is invoked when you do not have enough memory in the far
heap. As a rule, ProWindows requests an average 400 bytes per
window.

Error 4 means that you have tried to delete more windows than you
have displayed.

Error 5 occurs if you attempt to create more windows than is
permitted for your version.

Error 5 occurs if you attempt to display or remove a window while
in a graphics mode.

Error 9 is important. If this ever occurs, you have committed a
very serious crime. Intentionally altering or removing a
copyright from a product is a federal crime and is punishable with
a $10,000 fine and 5 years in prison. Please do not ever degrade
yourself by modifying the copyright.









(c) Copyright 1988-1989 Daniel P. Stasinski
Page - 6




ProWindows *LITE* - Version 2.02TC
Documentation


Global Variables_________________________________________________
Global Variables
Global Variables
Global Variables

-----------------------------------------------------------------
CREATEMODE
CREATEMODE
CREATEMODE
CREATEMODE
-----------------------------------------------------------------

Name: CREATEMODE - display window reference number flag
Name: CREATEMODE
Name: CREATEMODE
Name: CREATEMODE

Syntax: extern int CREATEMODE = 1;
Syntax:
Syntax:
Syntax:

Declared in: prowindc.h
Declared in:
Declared in:
Declared in:

Remarks: CREATEMODE controls whether ProWindows will display
Remarks: CREATEMODE
Remarks: CREATEMODE
Remarks: CREATEMODE
the current window reference number at the lower
right portion of the screen.

The default CREATEMODE = 1 to display reference
numbers.


-----------------------------------------------------------------
WI
WI
WI
WI
-----------------------------------------------------------------

Name: WI - index to current window
Name: WI
Name: WI
Name: WI

Syntax: extern int WI;
Syntax:
Syntax:
Syntax:

Declared in: prowindc.h
Declared in:
Declared in:
Declared in:

Remarks: WI contains an integer value corresponding to the
Remarks: WI
Remarks: WI
Remarks: WI
current window number being displayed.

The program must never modify the contents of this
variable.


-----------------------------------------------------------------
SCREEN_MODE
SCREEN_MODE
SCREEN_MODE
SCREEN_MODE
-----------------------------------------------------------------

Name: SCREEN_MODE - current video adapter mode
Name: SCREEN_MODE
Name: SCREEN_MODE
Name: SCREEN_MODE

Syntax: extern int SCREEN_MODE;
Syntax:
Syntax:
Syntax:

Declared in: prowindc.h
Declared in:
Declared in:
Declared in:

Remarks: SCREEN_MODE contains the value to the current video
Remarks: SCREEN_MODE
Remarks: SCREEN_MODE
Remarks: SCREEN_MODE
mode.

0x02 V_BW80 80 * 25 b/w text
0x03 V_CO80 80 * 25 color text
0x07 V_MONO 80 * 25 mono text
0xff V_INVALID Not a supported video mode


(c) Copyright 1988-1989 Daniel P. Stasinski
Page - 7




ProWindows *LITE* - Version 2.02TC
Documentation


-----------------------------------------------------------------
SNOW
SNOW
SNOW
SNOW
-----------------------------------------------------------------

Name: SNOW - snow suppression flag
Name: SNOW
Name: SNOW
Name: SNOW

Syntax: extern int SNOW = 1;
Syntax:
Syntax:
Syntax:

Declared in: prowindc.h
Declared in:
Declared in:
Declared in:

Remarks: SNOW controls whether ProWindows will use snow
Remarks: SNOW
Remarks: SNOW
Remarks: SNOW
suppression techniques when displaying, removing,
and printing text within, windows.











































(c) Copyright 1988-1989 Daniel P. Stasinski
Page - 8




ProWindows *LITE* - Version 2.02TC
Documentation


Data Structures__________________________________________________
Data Structures
Data Structures
Data Structures

There is only one data structure in use by ProWindows *PLUS* WLS.

struct {
int row;
int col;
int rows;
int cols;
int attribute;
int border;
int shadow;
int zoom;
char far *data;
int abytes;
int cbytes;
} wcb;

The wcb structure is used by every ProWindows *LITE* function to
coordinate saving, printing to, and removing windows.

The first eight elements contain the information just as you
called popwindow.
popwindow.
popwindow.
popwindow.

data is a far pointer to the memory location where your old window
data
data
data
is stored. abytes and cbytes contain specific information as to
abytes cbytes
abytes cbytes
abytes cbytes
the proper methods of decompressing your old screen.

Your routines must not modify the contents of any variable in this
structure. Doing so will cause unexpected results.


























(c) Copyright 1988-1989 Daniel P. Stasinski
Page - 9




ProWindows *LITE* - Version 2.02TC
Documentation


-----------------------------------------------------------------
attr
attr
attr
attr
-----------------------------------------------------------------

Function: attr - video attribute calculator
Function: attr
Function: attr
Function: attr

#include
int pascal attr(int foreground, int background);

Remarks: Valid foreground ranges are 0 to 31. Valid
Remarks: foreground
Remarks: foreground
Remarks: foreground
background ranges are 0 to 7.
background
background
background

This function is used with most ProWindows *LITE* &
*PLUS* routines.

Returns: Returns an integer ranging 0 to 255 as a video
Returns:
Returns:
Returns:
attribute.

See Also: attr, unattr, unbinattr
See Also:
See Also:
See Also:



-----------------------------------------------------------------
clearwindow
clearwindow
clearwindow
clearwindow
-----------------------------------------------------------------

Function: clearwindow - clears contents of current window
Function: clearwindow
Function: clearwindow
Function: clearwindow

Syntax: #include
Syntax:
Syntax:
Syntax:
void pascal clearwindow();

Remarks: Clears out entire contents of the current window.
Remarks:
Remarks:
Remarks:
Does not remove the border or any titles or text on
window borders.

See Also: popwindow, removewindow
See Also:
See Also:
See Also:



-----------------------------------------------------------------
copyright
copyright
copyright
copyright
-----------------------------------------------------------------

Function: copyright - display ProWindows Copyright Notice
Function: copyright
Function: copyright
Function: copyright

Syntax: #include
Syntax:
Syntax:
Syntax:
void pascal copyright(int row, int col);

Remarks: This routine displays the ProWindows *LITE*
Remarks:
Remarks:
Remarks:
copyright message at the supplied coordinates. The
message is displayed in a window 8 rows deep and 43
columns wide.

Note: In version 2.00 it is required that you call


(c) Copyright 1988-1989 Daniel P. Stasinski
Page - 10




ProWindows *LITE* - Version 2.02TC
Documentation


this function atleast once during the normal
execution of your program.

Note: Version 3.00 users are not required to
Note: Version 3.00 users are not required to
Note: Version 3.00 users are not required to
Note: Version 3.00 users are not required to
display the ProWindows copyright message, and have
display the ProWindows copyright message, and have
display the ProWindows copyright message, and have
display the ProWindows copyright message, and have
the option to disable it along with the 3 second
the option to disable it along with the 3 second
the option to disable it along with the 3 second
the option to disable it along with the 3 second
delay.
delay.
delay.
delay.

Note: copyright creates a window that must be
copyright
copyright
copyright
later removed.



-----------------------------------------------------------------
initpro
initpro
initpro
initpro
-----------------------------------------------------------------

Function: initpro - initialize ProWindows *LITE*
Function:
Function:
Function:

Syntax: #include
void pascal initpro(int row, int col,
void pascal (*userscreen)(),
int snowcheck);

Remarks: This function initializes the ProWindows *LITE*
package, sets up global variables, and displays the
default copyright window. ProWindows specific
functions can not be used until initialized.

You may not create popup windows before
initializing but you may create a type void pascal
function that contains the code you need to create
your startup screen. Upon exiting this function,
the default ProWindows copyright message is
displayed at the coordinates row and col, and
row col
row col
row col
execution is paused for 3 seconds. You may then
remove the copyright message and/or your startup
screens.

The final parameter, snowcheck, determines whether
the windows will suppress snow on old or sloppy CGA
cards. You might want to make this an option in
your end program since most new CGA cards
automatically suppress snow. Snow checking
minutely decreases window speed.

Note: Version 3.00 users are not required to
Note: Version 3.00 users are not required to
Note: Version 3.00 users are not required to
Note: Version 3.00 users are not required to
display the ProWindows copyright message, and have
display the ProWindows copyright message, and have
display the ProWindows copyright message, and have
display the ProWindows copyright message, and have
the option to disable it along with the 3 second
the option to disable it along with the 3 second
the option to disable it along with the 3 second
the option to disable it along with the 3 second
delay.
delay.
delay.
delay.

Example:
Example:
Example:
Example:

#include


(c) Copyright 1988-1989 Daniel P. Stasinski
Page - 11




ProWindows *LITE* - Version 2.02TC
Documentation


void pascal userscreen()
{
popwindow(5, 5, 15, 70, attr(15, 1), 1, 0, 1);
titlewindow(2, "[ My fantastic program ]");
}

void main()
{
initpro(8, 20, userscreen, 0);
removewindow(); /* first the copyright */
removewindow(); /* then your screen */
}



-----------------------------------------------------------------
popwindow
popwindow
popwindow
popwindow
-----------------------------------------------------------------

Function: popwindow - create a user defined window
Function: popwindow
Function: popwindow
Function: popwindow

Syntax: #include
Syntax:
Syntax:
Syntax:

void pascal popwindow(int row, int col,
int rows, int cols,
int attribute,
int border, int shadow,
int zoom);

Remarks: popwindow displays a pop up window according to the
Remarks: popwindow
Remarks: popwindow
Remarks: popwindow
supplied specifications. Prior to displaying each
window, the current portion of screen which the
window will occupy is automatically stored. The
window remains on the screen until removewindow is
removewindow
removewindow
removewindow
called.

Each displayed window begins at coordinates row,
row
row
row
col, and is rows deep and cols wide. attribute
col rows cols attribute
col rows cols attribute
col rows cols attribute
determines the window's color.

273 border styles,
border
border
border

0 - No Border
1 - Single line box
2 - Double line box
3 - Single Horizontal - Double Vertical
4 - Double Horizontal - Single Vertical
5 to 16 - See Demo (Ver. 3.01 and *PLUS*)
256 + ASCII Value - Any ASCII Character
(Ver. 3.01 and *PLUS*)

5 shadow styles,
shadow
shadow
shadow

0 - No Shadow


(c) Copyright 1988-1989 Daniel P. Stasinski
Page - 12




ProWindows *LITE* - Version 2.02TC
Documentation


1 - Bottom Left
2 - Bottom Right (Ver. 3.01 and *PLUS*)
3 - Top Left (Ver. 3.01 and *PLUS*)
4 - Top Right (Ver. 3.01 and *PLUS*)


10 zoom styles,
zoom
zoom
zoom

0 - No Zoom (Instant)
1 - Grow from Center
2 - Grow Down and Right
3 - Grow Down
4 - Grow Down and Left
5 - Grow Left
6 - Grow Right
7 - Grow Up and Right
8 - Grow Up
9 - Grow Up and Left

Warning: DO NOT EVER USE attr(8, 0). This particular
Warning: attr(8, 0)
Warning: attr(8, 0)
Warning: attr(8, 0)
attribute generates a code that will completely
corrupt the screen compression routine and will
cause your computer to lock up. Since those two in
combination create black on black, you should never
have a reason to use them.

See Also: cleawindow, removewindow, titlewindow, wprint
See Also:
See Also:
See Also:

Example:
Example:
Example:
Example:

#include

void noscreen()
{
}

void main()
{
int x;

initpro(9, 19, noscreen, 0);
removewindow();
popwindow(5, 5, 15, 70, attr(15, 1), 1, 0, 1);
titlewindow(2, "[ My fantastic program ]");

for(x = 1; x <= 15; x++)
popwindow(x, x * 4, 5, 10, attr(x, 4), 1, 1, 1);

delay(1500);

for(x = 1; x <= 17; x++)
removewindow();
}



(c) Copyright 1988-1989 Daniel P. Stasinski
Page - 13




ProWindows *LITE* - Version 2.02TC
Documentation


-----------------------------------------------------------------
removewindow
removewindow
removewindow
removewindow
-----------------------------------------------------------------

Function: removewindow - removes the current window
Function: removewindow
Function: removewindow
Function: removewindow
Syntax: #include
Syntax:
Syntax:
Syntax:
void pascal removewindow();

Remarks: Removes the current window being displayed and
Remarks:
Remarks:
Remarks:
restores the screen back to its original contents.
if no windows are left on the stack, it displays an
error message and exits with exit code 4

See Also: popwindow
See Also:
See Also:
See Also:



-----------------------------------------------------------------
titlewindow
titlewindow
titlewindow
titlewindow
-----------------------------------------------------------------

Function: titlewindow - titles the current window
Function: titlewindow
Function: titlewindow
Function: titlewindow

Syntax: #include
Syntax:
Syntax:
Syntax:
void pascal titlewindow(int location, char *text);
Remarks: Places specified text at any of eight border
Remarks:
Remarks:
Remarks:
locations in the current window. Foreground and
background colors are set to the default for that
particular window. Multiple calls are allowed, so
you may places text at all six locations if you
desire.

Border positions permitted:

1 - Top Left.
2 - Top Center.
3 - Top Right
4 - Bottom Left.
5 - Bottom Center.
6 - Bottom Right.
7 - Vertical Center Left. - V3 only
8 - Vertical Center Right. - V3 only

Example:
Example:
Example:
Example:

#include

void noscreen()
{
}






(c) Copyright 1988-1989 Daniel P. Stasinski
Page - 14




ProWindows *LITE* - Version 2.02TC
Documentation


void main()
{
int location;

initpro(9, 19, noscreen, 0);
removewindow();

popwindow(5, 5, 15, 70, attr(15, 1), 1, 0, 1);

for(location = 1; location <= 8; location++)
titlewindow(location, "[ Title ]");

delay(5000);

removewindow();
}



-----------------------------------------------------------------
wprint
wprint
wprint
wprint
cwprint
cwprint
cwprint
cwprint
wcprint
wcprint
wcprint
wcprint
cwcprint
cwcprint
cwcprint
cwcprint
-----------------------------------------------------------------

Function: wprint - default color text in window
Function: wprint
Function: wprint
Function: wprint
cwprint - custom color text in window
cwprint
cwprint
cwprint
wcprint - default color text in window center
wcprint
wcprint
wcprint
cwcprint - custom color text in window
cwcprint
cwcprint
cwcprint

Syntax: #include
Syntax:
Syntax:
Syntax:
wprint(int row, int col, char *text);
cwprint(int row, int col, int attr, char *text);
wcprint(int row, char *text);
cwcprint(int row, int attr, char *text);

Remarks: Places text at the specified position relative to
Remarks:
Remarks:
Remarks:
the inner coordinates of the current window.
wprint assumes that the text is to be displayed in
wprint
wprint
wprint
the default colors for that window. cwprint allows
cwprint
cwprint
cwprint
you to specify exact colors. These routines are
meant to be your first choice option of printing
text to your window, the following two are supplied
as supplementary routines only.

wcprint and cwcprint are the same except that the
wcprint cwcprint
wcprint cwcprint
wcprint cwcprint
text is automatically centered within the current
window so you need not specify a column.

Example:
Example:
Example:
Example:





(c) Copyright 1988-1989 Daniel P. Stasinski
Page - 15




ProWindows *LITE* - Version 2.02TC
Documentation


#include

void noscreen()
{
}

void main()
{
initpro(9, 19, noscreen, 0);
removewindow();

popwindow(5, 30, 10, 30, attr(14 ,4), 1, 1, 1);
titlewindow 2, "[ Here is a title ]");
wprint(3, 5, "Default Color Text");
cwprint(4, 5, attr(15, 1), "Different Color Text");
wcprint(5, "Default Color Centered Text");
cwcprint(6, attr(15, 5), "Different Color Centered Text");

delay(5000);
removewindow();
}



































(c) Copyright 1988-1989 Daniel P. Stasinski
Page - 16




ProWindows *LITE* - Version 2.02TC
Documentation


SECTION 4 - Memory Models________________________________________
SECTION 4 - Memory Models
SECTION 4 - Memory Models
SECTION 4 - Memory Models


Model ProWindows Library
------------- --------------------

TINY ** Coming Soon **
SMALL PROWINDC.LIB - Version 2.00
MEDIUM PRO_MM.LIB - Version 3.00 and *PLUS*
COMPACT PRO_MC.LIB - Version 3.00 and *PLUS*
LARGE PRO_ML.LIB - Version 3.00 and *PLUS*
HUGE PRO_MH.LIB - Version 3.00 and *PLUS*


To link your program to the correct library you must create a
Project File (.PRJ) specifying the intended file. Refer to the
Project File
Project File
Project File
Turbo C Users Guide for more information.
Turbo C Users Guide
Turbo C Users Guide
Turbo C Users Guide







































(c) Copyright 1988-1989 Daniel P. Stasinski
Page - 17




 December 8, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)