[FMX] Afficher un ComboBox dans une StringGrid
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
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| void __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;
} |
J'ai remplac� les propri�t�s suivantes par leur �quivalent FMX :
Code:
1 2 3
| Top > Position->Y
Left > Position->X
Col > ColumnIndex |
Je ne trouve pas les �quivalents de CellRect et GridLineWidth. Auriez-vous des pistes ?