Gregue Posted December 14, 2017 Share Posted December 14, 2017 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 14, 2017 Share Posted December 14, 2017 Hi, Please specify your UniGUI edition and build Best regards, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.