C++Builder Community Edition

Ordinateur

OnMouseDown

void __fastcall TForm1::Button1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,int X, int Y)

{
switch (Button) {

case mbLeft:

Button1->Caption ='G';
break;

case mbRight:

Button1->Caption ='D';
break;
}

}

 

RadioButton

if (RadioButton4->Checked == True)

for (i = 0; i < HAUTEUR; i++) {
for (j = 0; j < LARGEUR; j++) {

if (j<0) flag = j;

else flag = i*10 + j;

if (jeu[i][j].bombe)

ButtonGroup1->Items->Items[flag]->Caption = 'X';

} /* for */

} /* for */

 

 

 

 

 

 

 

Recherche personnalisée