warat mookdaanan Posted October 17, 2019 Share Posted October 17, 2019 I want to change button caption Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 17, 2019 Share Posted October 17, 2019 1 hour ago, warat mookdaanan said: I want to change button caption Hello, Which localization are you using? Quote Link to comment Share on other sites More sharing options...
warat mookdaanan Posted October 17, 2019 Author Share Posted October 17, 2019 From Thailand And i want to change caption to "OK" Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 17, 2019 Share Posted October 17, 2019 30 minutes ago, warat mookdaanan said: And i want to change caption to "OK" Can you please open a ticket in support portal? For now you can try to use this approach (temporary solution): procedure TMainForm.UniButton1Click(Sender: TObject); begin ShowMessage('Message-1'); UniSession.AddJS('Ext.select("#messagebox-1001-toolbar-innerCt [aria-hidden=false] [data-ref=btnInnerEl]").elements[0].innerHTML="OK"'); end; Quote Link to comment Share on other sites More sharing options...
warat mookdaanan Posted October 17, 2019 Author Share Posted October 17, 2019 Thank you very much Quote Link to comment Share on other sites More sharing options...
warat mookdaanan Posted October 20, 2019 Author Share Posted October 20, 2019 if MessageDlg('ยืนยันการออกจากระบบ', mtConfirmation, mbYesNo) = mrYes then Button not Yes and No Thank Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 20, 2019 Share Posted October 20, 2019 9 hours ago, warat mookdaanan said: Button not Yes and No Hello, Try this. MainForm.Script: Ext.onReady(function() { Ext.MessageBox.buttonText = { ok: "OK", cancel: "Cancel", yes: "Yes", no: "No" }; }); Quote Link to comment Share on other sites More sharing options...
warat mookdaanan Posted October 21, 2019 Author Share Posted October 21, 2019 please tell me i'am baby where is MainForm.Script: Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 21, 2019 Share Posted October 21, 2019 7 minutes ago, warat mookdaanan said: where is MainForm.Script: Quote Link to comment Share on other sites More sharing options...
warat mookdaanan Posted October 21, 2019 Author Share Posted October 21, 2019 thank you you answer very fast Quote Link to comment Share on other sites More sharing options...
warat mookdaanan Posted October 21, 2019 Author Share Posted October 21, 2019 excuse me my button in frame where is scrip in frame not use form Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 21, 2019 Share Posted October 21, 2019 12 hours ago, Sherzod said: MainForm.Script: Ext.onReady(function() { Ext.MessageBox.buttonText = { ok: "OK", cancel: "Cancel", yes: "Yes", no: "No" }; }); That should be enough. Quote Link to comment Share on other sites More sharing options...
Andrea Franco Posted November 8, 2019 Share Posted November 8, 2019 On 10/20/2019 at 3:45 PM, Sherzod said: Hello, Try this. MainForm.Script: Ext.onReady(function() { Ext.MessageBox.buttonText = { ok: "OK", cancel: "Cancel", yes: "Yes", no: "No" }; }); Is there a solution like this for mobile project too? I can't find Script property in TUnimForm. Thanks Andrea Quote Link to comment Share on other sites More sharing options...
Andrea Franco Posted December 2, 2019 Share Posted December 2, 2019 Can anyone help me with this? (uniGUI Complete - Professional Edition - Version:1.90.0 build 1514) Quote Link to comment Share on other sites More sharing options...
Andrea Franco Posted December 11, 2019 Share Posted December 11, 2019 Again, I'm near to deploy an italian mobile project and I need to translate the text inside MessageDlg, both in title and buttons, how can I do this? Thanks Andrea Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 11, 2019 Share Posted December 11, 2019 6 minutes ago, Andrea Franco said: Again, I'm near to deploy an italian mobile project and I need to translate the text inside MessageDlg, both in title and buttons, how can I do this? Thanks Sorry for the late response. I will check and let you know. Quote Link to comment Share on other sites More sharing options...
Andrea Franco Posted December 19, 2019 Share Posted December 19, 2019 Are there any news? Andrea Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 19, 2019 Share Posted December 19, 2019 36 minutes ago, Andrea Franco said: Are there any news? Sorry for the late response. Can you try to use this approach? procedure TMainmForm.UnimFormCreate(Sender: TObject); begin UniSession.AddJS('Ext.Msg.getStandardButtons().ok.text="OK!!!"'); UniSession.AddJS('Ext.Msg.getStandardButtons().yes.text="Yes!!!"'); UniSession.AddJS('Ext.Msg.getStandardButtons().cancel.text="Cancel!!!"'); UniSession.AddJS('Ext.Msg.getStandardButtons().no.text="No!!!"'); end; Quote Link to comment Share on other sites More sharing options...
Andrea Franco Posted December 19, 2019 Share Posted December 19, 2019 Hi, it works with ShowMessage but not with MessageDlg. ShowMessage('ShowMessage'); -> OK MessageDlg('MessageDlg', mtConfirmation, [mbOK, mbYes, mbCancel]); -> NOT OK Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 19, 2019 Share Posted December 19, 2019 Ok I will check and let you know. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 19, 2019 Share Posted December 19, 2019 2 hours ago, Andrea Franco said: MessageDlg('MessageDlg', mtConfirmation, [mbOK, mbYes, mbCancel]); -> NOT OK Yes, in this case they are rigidly defined in the code. 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.