Highlighting in dialogs

Is there a way of adding highlights to a detached dialog? Specifically it would be nice to be able to change the background colour, button background colour, and/or text characteristics (colour/bold/italics/etc.) to visually flag situations.

For example, when my code traps an error, in this case attempting to adjust the timestamp of a file within a zip archive,, changing either the background or the Touch! button background to red would immediately signal that something didn't work as expected.

Regards, AB


The 12.2.1 beta lets you change the text and background colours of static controls, which you could use for this sort of thing.

Jon

I am assuming, perhaps wrongly, that a button is a static control. However, the first command correctly displays a dialog button's label text whereas the second command throws an error - Invalid procedure call or argument.

DOpus.output("label = " + dlg.control("btn_process").label); DOpus.output("style = " + dlg.control("btn_process").style);
Am I doing something wrong?

Regards, AB

Buttons aren't static controls.

I think it's only for the Static Text controls: