Jump to content

Question about title messagedlg - Need help


Gregue

Recommended Posts

Hello

 

How to change the title of the messagedlg using:

UniSession.AddJS('Ext.get("messagebox-1001_header_hd-textEl").setHTML("Caption text")');

 

ok, that's how it works for me:

 

  MessageDlg('test messagedlg'+

  #13#10+

  ' Confim ?'+

  #13#10, mtWarning, mbYesNo, x...);

  UniSession.AddJS('Ext.get("messagebox-1001_header_hd-textEl").setHTML("Caption text")');

 

 

My question: how to include UniSession.AddJS in the example below:

 

procedure TMainForm.UniBitBtn1Click(Sender: TObject);

var

  vConfirm: Bool;

begin

        MessageDlg('Message Test. Confirm ?', mtConfirmation, mbYesNo,

           procedure (Sender: TComponent; Res: Integer)

           begin

              vConfirm := Res = mrYes;

              if vconfirm then

                 Memo1.Lines.Add('Confirm = True')

              else

                 Memo1.Lines.Add('Confirm = False');

           end);

end;

 

I need an example, please. 

 

Thank you

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...