Jump to content

ShowMessage Button is not ok


warat mookdaanan

Recommended Posts

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;

 

Link to comment
Share on other sites

  • 3 weeks later...
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

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...
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.

Link to comment
Share on other sites

  • 2 weeks later...
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;

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...