Bonjour,
Je souhaite afficher une liste déroulante dans une cellule d'une grille. Je sais le faire pour une application VCL, mais je ne trouve pas l'équivalent de mon code pour une application FMX.
Code VCL
J'ai remplacé les propriétés suivantes par leur équivalent FMX :
Code C++ : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9
10
11
12
13
14
15void __fastcall TForm2::StringGrid1Click(TObject *Sender) { if (StringGrid1->Col == 0) { TRect Recto = StringGrid1->CellRect(StringGrid1->Col, StringGrid1->Row); ComboBox1->Top = StringGrid1->Top; ComboBox1->Left = StringGrid1->Left; ComboBox1->Top = ComboBox1->Top + Recto.Top + StringGrid1->GridLineWidth; ComboBox1->Left = ComboBox1->Left + Recto.Left + StringGrid1->GridLineWidth + 1; ComboBox1->Height = (Recto.Bottom - Recto.Top) + 1; ComboBox1->Width = Recto.Right - Recto.Left; ComboBox1->Visible = True; }
Je ne trouve pas les équivalents de CellRect et GridLineWidth. Auriez-vous des pistes ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3

 

 
		
		 
         
			
			



 
			 
   
 


 [FMX] Afficher un ComboBox dans une StringGrid
 [FMX] Afficher un ComboBox dans une StringGrid
				 Répondre avec citation
  Répondre avec citation
Partager