Notifications
Announcements
No record found.
Hi,
I have to Change the color of the Text in the Dialog Box,Instead of Black color Text it should be in Red Color. Any Suggestions please .
Regards,
Ram.
Hi Ram,
Is that really necessary?
What value do you add by doing that?
Best regards,
Ludwig
I share the view of Ludwig.
But in case if you really need it you can take a look how Box::yesYesAllNoCancel method is designed. The text can be html and you can try to change color with html tags.
Hi Sergei,
I have seen the Box Class. But i don't know how to change the text color property there.
In addition to my suggestion in your related poast community.dynamics.com/.../how-to-modify-a-confirm-deletion-message
You have to develop a popup form with "Always on top" property. Here you can play with graphics.
Your options with Box::**** are limited.
Hi Crispin,
Can You Elaborate in detail. Since i am new to AX.How to do all those things you have mentioned.
Instead of the line of code where you use Box::***
you have to call a menuitem of a form.
To start with, create a form, set design property "Always on top" yes.
Add a text/label and set it's font/format from the properties.
Then create a menuitem for the form.
Just make a copy of yesYesAllNoCancel method from Box class with a minor change like below.
public client static DialogButton yesNoTest( str _text, DialogButton _defaultButton, str _title = "@SYS11132", boolean _modal = false) { Args args; Object formRunObj; FormRun formRun; ; args = new Args(); args.name(formstr(SysBoxForm)); formRun = classfactory.formRunClass(args); formRun.init(); formRunObj = formRun; formRunObj.setTitle(_title); formRunObj.setText(_text, false); formRunObj.setType(DialogBoxType::YesNoBox); formRunObj.parmDefaultButton(_defaultButton); formRun.run(); formRun.wait(_modal); return formRunObj.dialogButton(); }
And test it with code:
Box::yesNoTest('This is a red text', DialogButton::Yes);
This is a red text
I have Created a form with property 'always on top' to yes. Where Should i add the Condition Text .
Design>>new control>>Static text (for example)
Once you added the text, you can set it's font, from the properties
Yeah i have added the text should i add yes and No buttons there manually.
Ram
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 544 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader