Message methods: ho wto share code between VCL and LCL? lazarus / 7-LCL ---------------------------------------------------------------------- Anonymous · 2004-06-03 19:51 For instance "WMEraseBkgnd(var Message: TWMEraseBkgnd)"  is required in VCL, but in LCL it will require a TLMEraseBkgnd. Any hints on being able to share code *without* $ifdef or $include? ---------------------------------------------------------------------- Vincent Snijders · 2004-06-03 20:47 Add lmessage to your program and use TLMEraseBkgnd.