Jump to content
uniGUI Discussion Forums
valadi

how change caption ShowMessage

Recommended Posts

after you call showmessage add this

UniSession.AddJS('$("span#messagebox-1001_header_hd-textEl").html("Your Caption");');
  • Upvote 1

Share this post


Link to post
Share on other sites

 

after you call showmessage add this

UniSession.AddJS('$("span#messagebox-1001_header_hd-textEl").html("Your Caption");');

 

 

thanks

but not work code

plz check

Share this post


Link to post
Share on other sites

Hi,

 

Try:

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  ShowMessage('Test');
  UniSession.AddJS('Ext.get("messagebox-1001_header_hd-textEl").setHTML("Your Caption")');
end;

Best regards.

  • Upvote 1

Share this post


Link to post
Share on other sites

How about msgdlg ? Confirmation or Warning

 

Hi,

 

Try:

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  ShowMessage('Test');
  UniSession.AddJS('Ext.get("messagebox-1001_header_hd-textEl").setHTML("Your Caption")');
end;

Best regards.

 

Of course, maybe it's not the best solution, but try the following:

  MessageDlg('Test', mtWarning,[mbOk]);
  UniSession.AddJS('Ext.get("messagebox-1001_header_hd-textEl").setHTML("Your Caption")');

Best regards.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×