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

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...