[Lazarus] How to draw text in a edit (GTK2)
silvioprog
silvioprog at gmail.com
Tue Oct 4 02:57:36 CEST 2011
Hi,
In Windows is very easy:
(...)
var
VCanvas: TControlCanvas;
begin
VCanvas := TControlCanvas.Create;
try
VCanvas.Control := Edit1;
VCanvas.TextOut(0, 0, 'Test');
finally
VCanvas.Free;
end;
end;
(...)
But, this code don't works in Linux (Ubuntu 11.04 / GTK2).
What the alternative to draw text in a TWinControl (GTK2)?
Thx.
--
Silvio Clécio
===============================================
Blog - <silvioprog.com.br>
Twitter - <twitter.com/silvioprog>
Facebook - <facebook.com/silvioprog>
LazSolutions - <code.google.com/p/lazsolutions>
LazWebSolutions - <code.google.com/p/lazwebsolutions>
Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR>
===============================================
* Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
===============================================
More information about the Lazarus
mailing list