Topic: image in messagebox
hello all
it is possible to add an image in message box
i have an idea hut i do not know if message box in delphi support html
for example :
procedure Form1_Button3_OnClick(Sender: TObject ; Action: Integer ) ;
var
buttonSelected : Integer;
var my_html_text:String;
begin
my_html_text:="<style>.img-container {text-align: center;}</style><div class='img-container'><img src='myimage.png' ></div>";
buttonSelected := MessageBox(my_html_text+Chr(10)+Form1.Table.Edit1.Text,'mytitle',MB_YESNO+MB_ICONQUESTION);
if buttonSelected = IDYES then
begin
// do any thing
end
else if
buttonSelected = IDNO then
begin
// do other thing
end;
end;
can you help me
thanks for help