Int_CloseTextWindow, Int_CreateTextWindow, Int_CreateWindow, Int_OutputWindow, Int_SetWindowState, Int_SetWindowText
Description
int Int_CloseTextWindow();
This function closes the text window which was previously created by the Int_CreateTextWindow function.
Note
The text window can be closed also manually. You must push the left button on this window and then use Alt+F4.
See Also
Int_CreateTextWindow
Description
Int_CreateTextWindow( char *text
, intInt_Position
, colorrefbackground
, colorrefforeground
, intSize
);
This function creates a window without caption and menu, which can be used to display a text message.
Parameters
//Int_CreateTextWindow example - shows the text message. int i,j; SetCommandText("Working..."); Beep(); j=0; for(i=0;i<256;i=i+10) { Int_CreateTextWindow("API Example - Int_CreateTextWindow",0,RGB(i,i,0),RGB(256-i,256-i,0),j); j = j + 4; } Wait(2); Int_CloseTextWindow();
Note
The text window is designed to display one-line text messages. You can replace the text in currently created window simply by calling this function again with different text. The first /t character is used to divide the text, the first part is aligned to the left side, the right part to the right side. Text without \t character is centered in the window. There can be only one text window created.
Description
Int_CreateWindow( intInt_Id
, char *Caption
, intInt_Position
, intx
, inty
, intWidth
, intHeight
, char *Buffer
, inthasMenu
, intcolumns
, doubleInt_Livetime
, inteditable
, intscrollbars
, intscalable
, char *font
);
This function creates a window which can be used to display text. Because of the automatic column-formatting feature, this function is useful to display the results of measurements.
The text to be displayed in the window may contain the character sequence , which will be interpreted as CR and the character sequence, which will be interpreted as HTAB. String length should be less than 30000. When buffer is a NULL pointer or an empty string (a string with zero length), the properties and display-parameters of an existing window will be changed, but its text remains.
Parameters
Int_Id
Identifier of window which should be created or of which the parameters should be changed. From 1 to 4 inclusive.
hasMenu
Window has a menu when non-zero: FILE - Save As, Print and EDIT - Cut, Copy, Paste, Select Font.
columns
When non-zero, the text in the window will be formatted according to the tabstop-sequences () in buffer.
Int_Livetime
Time, in seconds, after which the window should be destroyed. It is rounded to a quarter of a second. When livetime is equal to zero, the window will never be destroyed. When lifetime is negative, the user is prompted before destruction, with the option of letting the window remain permanently.
font
Font-information in the form [first N (case-insensitive) characters of fontname,] [pointsize][[B][I][C]] B and I stand for Bold and Italic,C for charset respectively. N can range from 1 to the length of the name of the desired font. C can be one of the following constants: A ANSI_CHARSET, G GREEK_CHARSET, T TURKISH_CHARSET, L BALTIC_CHARSET, E EASTEUROPE_CHARSET, R RUSSIAN_CHARSET. All parameters are optional and may appear in any order.
See Also
Int_SetWindowText, Int_SetWindowState, Int_OutputWindow, Int_CreateTextWindow, Int_CloseTextWindow
Description
Int_OutputWindow( intInt_Id
, intInt_Dest
, char *Filename
);
This function copies text from a window created by the Int_CreateWindow function to the clipboard, prints it, or writes it to a file in the Windows directory. This function returns zero when no window specified by Int_Id exists or when it proves impossible to write to the specified file.
Parameters
Description
int Int_SetWindowState( intInt_Id
, intmode
);
This function changes the state of a window created by the Int_CreateWindow function.
Parameters
See Also
Int_CreateWindow, Int_SetWindowText, Int_OutputWindow, Int_CreateTextWindow, Int_CloseTextWindow, Int_CreateWindow
Description
int Int_SetWindowText( intInt_Id
, char *text
, intappend
);
This function replaces or appends text to a window created by the Int_CreateWindow function.
Parameters
Return Values
Note
For a macro example, see the Get_Info function description.
See Also
Int_CreateWindow, Int_SetWindowState, Int_OutputWindow, Int_CreateTextWindow, Int_CloseTextWindow, Get_Info, Int_CreateWindow