Reputation: 73
I need to set Label as Bold or Change its Color on Form Control.
There are not much details available for the same on Microsoft. I can do the same on control directly but that changes value's styling. I need the same for label text.
Tried but not working:
Control.labelForegroundColor(WinAPI::RGB2int(255,0,0));
Control.labelBold(7);
Kindly help
Upvotes: 0
Views: 1669
Reputation: 5107
Take a look at Deprecated APIs, which lists the two properties mentioned in the question.
The history of that article shows that they have been listed there as deprecated since 2017, so it is not surprising that they no longer work.
These properties were available in earlier versions (e.g. AX 2012), but with the switch to a pure browser based client, they are no longer supported.
The article also lists some reasons for the deprecations in the beginning, such as:
- Not suited/applicable to the new client.
- Degrade performance.
- Chatty (cause lot of traffic back and forth between server and client).
- Redundant (framework automatically handles these now).
Faking it with other controls like @Jason Rowe suggests might work. But my recommendation would be to reevaluate the business requirement behind this customization and check if it can be implemented in a different way that does not require working against the system.
In general, my experience even with earlier versions is that changing colors or other design aspects of the ui is not very well supported and does not align well with the design/ui philosophy of Microsoft for the product.
Upvotes: 0