canvas does not allow drawing
Posted: Sat Dec 22, 2012 3:51 pm
Hello dear,
when i use 'chat demo' in TIdUDPServer onRead event:
this error Sometimes appear:
"canvas does not allow drawing"
[/code][/b]
when i use 'chat demo' in TIdUDPServer onRead event:
Code: Select all
procedure TfrmMain.UpdateChat(msg: string);
begin
ParseString(mChat,msg); // from chat demo
mChat.Invalidate;
try
mChat.Format;
except
mChat.FormatTail;
end;
mChat.Update;
mChat.DeleteUnusedStyles(True, True, True);
mChat.VScrollPos:= mChat.VScrollMax;
end;
"canvas does not allow drawing"
[/code][/b]