1 |
|
3 |
//---------------------------------------------------------------------------
|
2 |
|
|
#include <vcl\vcl.h>
|
3 |
|
|
#include <string.h>
|
4 |
|
|
#pragma hdrstop
|
5 |
|
|
|
6 |
|
|
#include "cface.h"
|
7 |
|
|
#include "fenetre.h"
|
8 |
|
|
//---------------------------------------------------------------------------
|
9 |
|
|
#pragma resource "*.dfm"
|
10 |
|
|
TFace *Face;
|
11 |
|
|
//---------------------------------------------------------------------------
|
12 |
|
|
__fastcall TFace::TFace(TComponent* Owner)
|
13 |
|
|
: TForm(Owner)
|
14 |
|
|
{
|
15 |
|
|
}
|
16 |
|
|
//---------------------------------------------------------------------------
|
17 |
|
|
void __fastcall TFace::FormShow(TObject *Sender)
|
18 |
|
|
{
|
19 |
|
|
Face->Left=Fenp->Left+45;
|
20 |
|
|
Face->Top=Fenp->Top+66;
|
21 |
|
|
ListBox1->MultiSelect=False;
|
22 |
|
|
}
|
23 |
|
|
//---------------------------------------------------------------------------
|
24 |
|
|
void __fastcall TFace::Button1Click(TObject *Sender)
|
25 |
|
|
{
|
26 |
|
|
char mess[255];
|
27 |
|
|
strcpy(mess,ListBox1->Items->Strings[ListBox1->ItemIndex].c_str());
|
28 |
|
|
if (ListBox1->ItemIndex==0) Fenp->numface=(-1);
|
29 |
|
|
else sscanf(mess,"%d",&Fenp->numface);
|
30 |
|
|
Face->Close();
|
31 |
|
|
}
|
32 |
|
|
//---------------------------------------------------------------------------
|