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 C++ : Sélectionner tout - Visualiser dans une fenêtre à part
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 : Sélectionner tout - Visualiser dans une fenêtre à part
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 ?