Can someone help me with changing the Color of TlzRichEdit?
SendMessage( lzRichEdit1.Handle, EM_SETBKGNDCOLOR, 0, RGB( 123,43,143 ) );
SendMessage( lzRichEdit1.Handle, EM_SETBKGNDCOLOR, 0, ColorToRGB(clYellow) );
ClientToScreen(Classes.Point(X, Y));
What am I doing wrong? Why does a simple call to change a component color have to be rocket science?
If I right-click SendMessage when it doesn't compile, I click on "Find Declaration" and nothing happens.
If I include Windows in the uses clause, it reports a Syntax Error on "ClientToScreen(Point(X,Y));". Without Windows, "ClientToScreen(Point(X,Y));" compiles as expected. What gives?
On the loading/saving from/to database matter, perhaps this can help:http://stackoverflow.com/questions/4074383/loading-rtf-text-from-database-into-tricheditYou can see a loading/saving example from/to a Memo control in the zip file attached.
Quote from: JSN on August 23, 2014, 02:30:18 amIf I include Windows in the uses clause, it reports a Syntax Error on "ClientToScreen(Point(X,Y));". Without Windows, "ClientToScreen(Point(X,Y));" compiles as expected. What gives?B.T.W. instead of putting Classes. before Point (Like typo showed you) you could also put windows before Classes in the uses clause. The Windows-unit also defines a type named Point which conflict with the one from Classes. So if you put windows before Classes in the uses clause the Point of Classes is taken (instead of the one from windows). When having a big unit (or lots of units) this is an easier approach than changing all the Point's to Classes.Point.