Voilà, je suis en train de faire un petit programme et je n'ai pour le moment fait que du visuel... Je tiens à préciser que je n'ai commencer le C++ depuis 1 an seulement et que je commence à peine le graphique...
Pour commencer, voici la première page de mon programme...
Et voici ce que j'obtient si j'appuie sur un des bouton de gauche...
Alors voilà, c'est la première fois que je vois cet écran et j'aimerai savoir ce qui pourrai clocher...
Voici les 3 pages de codes (il y a effectivement 3 fiches dans mon programme)...
Code Page 1 : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316 //--------------------------------------------------------------------------- #include <vcl.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> #include <iostream.h> #pragma hdrstop #include "Bind.h" #include "Bind2.h" #include "Bind3.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; //--------------------------------------------------------------------------- __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall TForm1::Quitter1Click(TObject *Sender) { Form1->Close(); } //--------------------------------------------------------------------------- void __fastcall TForm1::proposde1Click(TObject *Sender) { Form2->Visible=true; } //--------------------------------------------------------------------------- void __fastcall TForm1::Bindarme1Click(TObject *Sender) { Label1->Caption=" Arme principale"; Label1->Visible=true; Label2->Caption=" Arme secondaire"; Label2->Visible=true; Label3->Caption=" Touches"; Label3->Visible=true; Label4->Caption="BIND ARMES"; Label4->Visible=true; Label5->Visible=false; Label6->Visible=true; ComboBox1->Visible=true; ComboBox2->Visible=true; ComboBox3->Visible=true; ComboBox4->Visible=false; CheckBox1->Visible=true; CheckBox2->Visible=true; CheckBox3->Visible=true; CheckBox4->Visible=true; CheckBox5->Visible=true; CheckBox6->Visible=true; CheckBox7->Visible=true; CheckBox8->Visible=true; CheckBox9->Visible=true; Panel1->Caption=""; Panel1->Visible=true; Button1->Visible=true; Button2->Visible=true; Button3->Visible=true; Button4->Visible=false; Button5->Visible=false; Button6->Visible=false; } //--------------------------------------------------------------------------- void __fastcall TForm1::Bindradio1Click(TObject *Sender) { Label1->Visible=false; Label2->Visible=false; Label3->Caption=" Touche"; Label3->Visible=true; Label4->Caption="BIND RADIOS"; Label4->Visible=true; Label5->Caption=" Radio"; Label5->Visible=true; Label6->Visible=false; ComboBox1->Visible=false; ComboBox2->Visible=false; ComboBox3->Visible=true; ComboBox4->Visible=true; CheckBox1->Visible=false; CheckBox2->Visible=false; CheckBox3->Visible=false; CheckBox4->Visible=false; CheckBox5->Visible=false; CheckBox6->Visible=false; CheckBox7->Visible=false; CheckBox8->Visible=false; CheckBox9->Visible=false; Panel1->Caption=""; Panel1->Visible=true; Button1->Visible=true; Button2->Visible=true; Button3->Visible=true; Button4->Visible=false; Button5->Visible=false; Button6->Visible=false; } //--------------------------------------------------------------------------- void __fastcall TForm1::Bindcomplet1Click(TObject *Sender) { Label1->Caption=" Arme principale"; Label1->Visible=true; Label2->Caption=" Arme secondaire"; Label2->Visible=true; Label3->Caption=" Touche"; Label3->Visible=true; Label4->Caption="BIND COMPLETS"; Label4->Visible=true; Label5->Caption=" Radio"; Label5->Visible=true; Label6->Visible=true; ComboBox1->Visible=true; ComboBox2->Visible=true; ComboBox3->Visible=true; ComboBox4->Visible=true; CheckBox1->Visible=true; CheckBox2->Visible=true; CheckBox3->Visible=true; CheckBox4->Visible=true; CheckBox5->Visible=true; CheckBox6->Visible=true; CheckBox7->Visible=true; CheckBox8->Visible=true; CheckBox9->Visible=true; Panel1->Caption=""; Panel1->Visible=true; Button1->Visible=true; Button2->Visible=true; Button3->Visible=true; Button4->Visible=false; Button5->Visible=false; Button6->Visible=false; } //--------------------------------------------------------------------------- void __fastcall TForm1::Button1Click(TObject *Sender) { Panel1->Caption="bind \"Touche\" \"Action1, Action2\""; } //--------------------------------------------------------------------------- void __fastcall TForm1::Button2Click(TObject *Sender) { Panel1->Caption=""; } //--------------------------------------------------------------------------- void __fastcall TForm1::Button3Click(TObject *Sender) { Form3->Visible=true; } //--------------------------------------------------------------------------- void __fastcall TForm1::FormCreate(TObject *Sender) { Label4->Caption="cZ Bind© Version 1.0 | Aladdin"; } //--------------------------------------------------------------------------- void __fastcall TForm1::Menuprincipal1Click(TObject *Sender) { Label1->Visible=false; Label2->Visible=false; Label3->Visible=false; Label4->Caption="cZ Bind© Version 1.0 | Aladdin"; Label4->Visible=true; Label5->Visible=false; Label6->Visible=false; ComboBox1->Visible=false; ComboBox2->Visible=false; ComboBox3->Visible=false; ComboBox4->Visible=false; CheckBox1->Visible=false; CheckBox2->Visible=false; CheckBox3->Visible=false; CheckBox4->Visible=false; CheckBox5->Visible=false; CheckBox6->Visible=false; CheckBox7->Visible=false; CheckBox8->Visible=false; CheckBox9->Visible=false; Panel1->Visible=false; Button1->Visible=false; Button2->Visible=false; Button3->Visible=false; Button4->Visible=true; Button5->Visible=true; Button6->Visible=true; Memo1->Visible=true; } //--------------------------------------------------------------------------- void __fastcall TForm1::Button7Click(TObject *Sender) { Form2->Visible=true; } //--------------------------------------------------------------------------- void __fastcall TForm1::Button4Click(TObject *Sender) { Label1->Caption=" Arme principale"; Label1->Visible=true; Label2->Caption=" Arme secondaire"; Label2->Visible=true; Label3->Caption=" Touches"; Label3->Visible=true; Label4->Caption="BIND ARMES"; Label4->Visible=true; Label5->Visible=false; Label6->Visible=true; ComboBox1->Visible=true; ComboBox2->Visible=true; ComboBox3->Visible=true; ComboBox4->Visible=false; CheckBox1->Visible=true; CheckBox2->Visible=true; CheckBox3->Visible=true; CheckBox4->Visible=true; CheckBox5->Visible=true; CheckBox6->Visible=true; CheckBox7->Visible=true; CheckBox8->Visible=true; CheckBox9->Visible=true; Panel1->Caption=""; Panel1->Visible=true; Button1->Visible=true; Button2->Visible=true; Button3->Visible=true; Button4->Visible=false; Button5->Visible=false; Button6->Visible=false; Memo1->Visible=false; } //--------------------------------------------------------------------------- void __fastcall TForm1::Button5Click(TObject *Sender) { Label1->Visible=false; Label2->Visible=false; Label3->Caption=" Touche"; Label3->Visible=true; Label4->Caption="BIND RADIOS"; Label4->Visible=true; Label5->Caption=" Radio"; Label5->Visible=true; Label6->Visible=false; ComboBox1->Visible=false; ComboBox2->Visible=false; ComboBox3->Visible=true; ComboBox4->Visible=true; CheckBox1->Visible=false; CheckBox2->Visible=false; CheckBox3->Visible=false; CheckBox4->Visible=false; CheckBox5->Visible=false; CheckBox6->Visible=false; CheckBox7->Visible=false; CheckBox8->Visible=false; CheckBox9->Visible=false; Panel1->Caption=""; Panel1->Visible=true; Button1->Visible=true; Button2->Visible=true; Button3->Visible=true; Button4->Visible=false; Button5->Visible=false; Button6->Visible=false; Memo1->Visible=false; } //--------------------------------------------------------------------------- void __fastcall TForm1::Button6Click(TObject *Sender) { Label1->Caption=" Arme principale"; Label1->Visible=true; Label2->Caption=" Arme secondaire"; Label2->Visible=true; Label3->Caption=" Touche"; Label3->Visible=true; Label4->Caption="BIND COMPLETS"; Label4->Visible=true; Label5->Caption=" Radio"; Label5->Visible=true; Label6->Visible=true; ComboBox1->Visible=true; ComboBox2->Visible=true; ComboBox3->Visible=true; ComboBox4->Visible=true; CheckBox1->Visible=true; CheckBox2->Visible=true; CheckBox3->Visible=true; CheckBox4->Visible=true; CheckBox5->Visible=true; CheckBox6->Visible=true; CheckBox7->Visible=true; CheckBox8->Visible=true; CheckBox9->Visible=true; Panel1->Caption=""; Panel1->Visible=true; Button1->Visible=true; Button2->Visible=true; Button3->Visible=true; Button4->Visible=false; Button5->Visible=false; Button6->Visible=false; Memo1->Visible=false; } //---------------------------------------------------------------------------
Code Page 1.h : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81 //--------------------------------------------------------------------------- #ifndef BindH #define BindH //--------------------------------------------------------------------------- #include <Classes.hpp> #include <Controls.hpp> #include <StdCtrls.hpp> #include <Forms.hpp> #include <Menus.hpp> #include <Buttons.hpp> #include <ExtCtrls.hpp> #include <ActnList.hpp> #include <jpeg.hpp> //--------------------------------------------------------------------------- class TForm1 : public TForm { __published: // Composants gérés par l'EDI TMainMenu *MainMenu1; TMenuItem *Fichier1; TMenuItem *Quitter1; TMenuItem *Outils1; TMenuItem *proposde1; TMenuItem *Edition1; TMenuItem *Bindarme1; TMenuItem *Bindradio1; TMenuItem *Bindcomplet1; TComboBox *ComboBox1; TLabel *Label1; TLabel *Label2; TComboBox *ComboBox2; TLabel *Label3; TComboBox *ComboBox3; TLabel *Label4; TComboBox *ComboBox4; TLabel *Label5; TCheckBox *CheckBox1; TLabel *Label6; TCheckBox *CheckBox2; TCheckBox *CheckBox3; TCheckBox *CheckBox4; TCheckBox *CheckBox5; TCheckBox *CheckBox6; TCheckBox *CheckBox7; TCheckBox *CheckBox8; TCheckBox *CheckBox9; TButton *Button1; TPanel *Panel1; TButton *Button2; TButton *Button3; TImage *Image1; TMenuItem *Menuprincipal1; TMenuItem *N1; TButton *Button4; TButton *Button5; TButton *Button6; TButton *Button7; TMemo *Memo1; void __fastcall Quitter1Click(TObject *Sender); void __fastcall proposde1Click(TObject *Sender); void __fastcall Bindarme1Click(TObject *Sender); void __fastcall Bindradio1Click(TObject *Sender); void __fastcall Bindcomplet1Click(TObject *Sender); void __fastcall Button1Click(TObject *Sender); void __fastcall Button2Click(TObject *Sender); void __fastcall Button3Click(TObject *Sender); void __fastcall FormCreate(TObject *Sender); void __fastcall Menuprincipal1Click(TObject *Sender); void __fastcall Button7Click(TObject *Sender); void __fastcall Button4Click(TObject *Sender); void __fastcall Button5Click(TObject *Sender); void __fastcall Button6Click(TObject *Sender); private: // Déclarations utilisateur public: // Déclarations utilisateur __fastcall TForm1(TComponent* Owner); }; //--------------------------------------------------------------------------- extern PACKAGE TForm1 *Form1; //--------------------------------------------------------------------------- #endif
Code Page 2 : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 //--------------------------------------------------------------------------- #include <vcl.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> #include <iostream.h> #pragma hdrstop #include "Bind.h" #include "Bind2.h" #include "Bind3.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm2 *Form2; //--------------------------------------------------------------------------- __fastcall TForm2::TForm2(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall TForm2::BitBtn1Click(TObject *Sender) { Form2->Close(); } //--------------------------------------------------------------------------- void __fastcall TForm2::Quitter2Click(TObject *Sender) { Form2->Close(); } //--------------------------------------------------------------------------- void __fastcall TForm2::proposde2Click(TObject *Sender) { proposde2->Visible=false; } //---------------------------------------------------------------------------
Code Page 2.h : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 //--------------------------------------------------------------------------- #ifndef Bind2H #define Bind2H //--------------------------------------------------------------------------- #include <Classes.hpp> #include <Controls.hpp> #include <StdCtrls.hpp> #include <Forms.hpp> #include <Buttons.hpp> #include <Menus.hpp> //--------------------------------------------------------------------------- class TForm2 : public TForm { __published: // Composants gérés par l'EDI TLabel *Label1; TBitBtn *BitBtn1; TLabel *Label2; TLabel *Label3; TMainMenu *MainMenu2; TMenuItem *Fichier2; TMenuItem *Quitter2; TMenuItem *Outils2; TMenuItem *proposde2; void __fastcall BitBtn1Click(TObject *Sender); void __fastcall Quitter2Click(TObject *Sender); void __fastcall proposde2Click(TObject *Sender); private: // Déclarations utilisateur public: // Déclarations utilisateur __fastcall TForm2(TComponent* Owner); }; //--------------------------------------------------------------------------- extern PACKAGE TForm2 *Form2; //--------------------------------------------------------------------------- #endif
Code Page 3 : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 //--------------------------------------------------------------------------- #include <vcl.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> #include <iostream.h> #pragma hdrstop #include "Bind.h" #include "Bind2.h" #include "Bind3.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm3 *Form3; //--------------------------------------------------------------------------- __fastcall TForm3::TForm3(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall TForm3::Quitter2Click(TObject *Sender) { Form3->Close(); } //--------------------------------------------------------------------------- void __fastcall TForm3::proposde2Click(TObject *Sender) { Form2->Visible=true; } //---------------------------------------------------------------------------
Code Page 3.h : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 //--------------------------------------------------------------------------- #ifndef Bind3H #define Bind3H //--------------------------------------------------------------------------- #include <Classes.hpp> #include <Controls.hpp> #include <StdCtrls.hpp> #include <Forms.hpp> #include <Menus.hpp> #include <ExtCtrls.hpp> //--------------------------------------------------------------------------- class TForm3 : public TForm { __published: // Composants gérés par l'EDI TMainMenu *MainMenu2; TMenuItem *Fichier2; TMenuItem *Quitter2; TMenuItem *Outils2; TMenuItem *proposde2; TLabel *Label1; TMemo *Memo1; void __fastcall Quitter2Click(TObject *Sender); void __fastcall proposde2Click(TObject *Sender); private: // Déclarations utilisateur public: // Déclarations utilisateur __fastcall TForm3(TComponent* Owner); }; //--------------------------------------------------------------------------- extern PACKAGE TForm3 *Form3; //--------------------------------------------------------------------------- #endif
Je tiens à préciser qu'aucune erreur n'a été trouver par BCB... Donc voilà je pense que l'erreur se situe au niveau de la Page1 (voir de la Page1.h)... Et le pire c'est jusque il y a 5 minutes il marchait et j'ai rien changer, juste le temps de parler sur msn et j'appelle ma copine, je lui dis regarde mon programme et là, c'est la catastrophe, il beug... Si quelqu'un pouvais m'aider ça serait sympa car j'ai 2 semaines pour finir ce programme
...
Partager