Hi
I have a ShowMessage dialog that shows one message if something is true and another message if something is false. e.g.
begin
If (Value > 5) then
ShowMessage('It is bigger than 5')
else ShowMessage('It is smaller than 5');
end;
In both instances, the "OK" button for the dialog has a green tick on it, for both the true and negative response.
I'd like to be able to make the OK button have a green tick if the valuation of the statement is true, but if the valuation is false, I'd like the OK button to have a red cross.
begin
If (Value > 5) then
ShowMessage('It is bigger than 5') // Show green tick in the OK button
else ShowMessage('It is smaller than 5'); // Show red cross in the OK button
end;
Is there a way to customise the OK button of ShowMessage dialog in this way? Before people send me to the section titled 'QuestionDlg' at
http://wiki.freepascal.org/Dialog_Examples, I'm not ruling that out, but I'm not sure I understand how it would work in the simple context above of just evaluating a value. I wanted to know if there was a siple way of just changing a setting to get a red cross in ShowMessage without resorting more complex avenues.