TEdit in TTMSFMXPopup

How can you write in a TEdit, that is inside a panel, that is the detailcontrol of a TTMSFMXPopup.

When you set the popupMenu DetailControl as the panel, the panel become invisible and you cannot edit the TEdit from inside the popup.
This did work in XE4.

Simple Form With Button, Pannel with TEdit and a TTMSFMXPopup

procedure TForm1.Button1Click(Sender: TObject);
begin
  TMSFMXPopup1.ClosePopup;
  TMSFMXPopup1.PlacementTarget:=Button1;
  TMSFMXPopup1.DetailControl:=panel1;
  TMSFMXPopup1.Popup;
end;

There is also a problem with the Detail control if you remove the  " TMSFMXPopup1.ClosePopup; " the detail control sometimes goes invisible inside the popup.

Greetings

Hi, 


You need to set the ShowActivated property to true:

  TMSFMXPopup1.ShowActivated := True;

Kind Regards, 
Pieter
i am still not able to type in the Tedit. 
ShowActivated is set to true, and was previously set to true.

type
  TForm1 = class(TForm)
    TMSFMXPopup1: TTMSFMXPopup;
    Button1: TButton;
    Panel1: TPanel;
    Edit1: TEdit;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.fmx}

procedure TForm1.Button1Click(Sender: TObject);
begin
  TMSFMXPopup1.DetailControl:=panel1;
  TMSFMXPopup1.PlacementTarget:=button1;
  TMSFMXPopup1.ShowActivated:=true;
  TMSFMXPopup1.Popup;
end;





Hello Peter,
this isn't a solution for this bug. Check this for yourself: use a simple panel with a TEdit and for example a TSpinbox on it.
Do popup, select TEdit, fill it with some char, close the popup and do it again. Two times and it's impossible to select the TEdit again or do any input.
Because this effect we "killed" the TMSFMXPopup's in our projects and use simple&"save" forms.

Grettings

Hi, 


The TTMSFMXPopup is based on TPopup and seems to have the same issues. They even removed the ShowActivated property and forced a showmodal in XE5 which requires an additional button to close the popup. 

Kind Regards, 
Pieter