Current filter:
                                You should refresh the page.
                                  • How call DoPopup in runtime cxPopupEdit1.Properties.PopupControl
                                • Ulia Shulga 12.07.2018
                                  This code did not work/
                                  What's wrong?

                                  procedure Tfrm_Rem_AT_Dlg.FormShow(Sender: TObject);
                                  begin
                                      cxPopupEdit_SpecShort.SetFocus;
                                      cxPopupEdit_SpecShort.SelectAll;
                                      cxPopupEdit_SpecShort.DroppedDown := True;
                                  end;

                                1 Solution

                                Creation Date Importance Sort by

                                Hello,

                                The DoPopup procedure is a protected procedure of drop-down editors. So, you need to create an accessor for the editor's class to work with its protected methods and properties. See the A1030: How to access a protected class member Knowledge Base article for more information.

                                If you wish to show the drop-down window of the TcxPopupEdit component, enable the TcxPopupEdit.DroppedDown property:

                                [Delphi]
                                <AcxPopupEdit>.DroppedDown := True;
                                • Mikhail (DevExpress Support) 12.07.2018

                                  Please try using the postponed procedure (PostMessage) to accomplish the task:

                                  [Delphi]
                                  const UM_MYMESSAGE = WM_USER + 1; type TForm1 = class(TForm) ... procedure umMyMessage(var Message: TMessage); message UM_MYMESSAGE; procedure TForm1.FormShow(Sender: TObject); begin PostMessage(Handle, UM_MYMESSAGE, 0, 0); end; procedure TForm1.umMyMessage(var Message: TMessage); begin cxPopupEdit1.SetFocus; ... cxPopupEdit1.DroppedDown := True; end;

                                   

                                • Ulia Shulga 12.07.2018
                                  Thank you.
                                  I already used code:

                                  procedure Tfrm_Rem_AT_Dlg.FormPaint(Sender: TObject);
                                  begin
                                  if cxPopupEdit_SpecShort.DroppedDown and cxPopupEdit_SpecShort.Focused then
                                   cxPopupEdit_SpecShort.DroppedDown := True;
                                  end;

                                  I don't know why it works