1 |
|
1 |
/*****************************************************************
|
2 |
|
|
|
3 |
|
|
aff_text.c Type:Func
|
4 |
|
|
|
5 |
|
|
fonction printf
|
6 |
|
|
|
7 |
|
|
Date de creation : Mon May 5 11:51:05 1997
|
8 |
|
|
|
9 |
|
|
Derniere version : Mon May 5 11:51:05 1997
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
Vincent FRANCOIS
|
13 |
|
|
|
14 |
|
|
*****************************************************************/
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
/**************************/
|
21 |
|
|
/* include */
|
22 |
|
|
#include <string.h>
|
23 |
|
|
#include <stdio.h>
|
24 |
|
|
#include "fenetre.h"
|
25 |
|
|
#include "prototype.h"
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
/**************************/
|
29 |
|
|
/* variables globales */
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
/**************************/
|
34 |
|
|
/* programme principal */
|
35 |
|
|
|
36 |
|
|
void aff_text(char *mess)
|
37 |
|
|
{
|
38 |
|
|
int i;
|
39 |
|
|
|
40 |
|
|
i=strlen(mess);
|
41 |
|
|
if (mess[i-1]=='\n') mess[i-1]=0;
|
42 |
|
|
Fenp->Memo1->Lines->Add(mess);
|
43 |
|
|
Fenp->Memo1->ScrollBars=ssBoth;
|
44 |
|
|
}
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
void voir(void)
|
48 |
|
|
{
|
49 |
|
|
Application->ProcessMessages();
|
50 |
|
|
}
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
void minimize(void)
|
54 |
|
|
{
|
55 |
|
|
Application->Minimize();
|
56 |
|
|
}
|
57 |
|
|
|
58 |
|
|
void restore(void)
|
59 |
|
|
{
|
60 |
|
|
Application->Restore();
|
61 |
|
|
}
|
62 |
|
|
|
63 |
|
|
|