Hi,
I want do draw in a cell of a TDBGrid some content so a write this code
s:=field.asString;
r:=rect;
inflaterect(r,-1,-1);
r.right:=r.right-getsystemmetrics(SM_CXVSCROLL);
drawtext(canvas.handle,pchar(s),-1,r,DT_WORDBREAK or DT_NOPREFIX);
well the issue is that if the content is something like "più" in the cell it is display pi and some strange char. The other strange think is that if a write
drawtext(canvas.handle,'più',-1,r,DT_WORDBREAK or DT_NOPREFIX);
everything works fine.
I use a Sqlite database.
Many thanks