[Lazarus] Tooltips in editor not working with trunk
vsnijders at quicknet.nl
Tue Sep 2 20:54:59 CEST 2008
Graeme Geldenhuys schreef:
> I did a search for "spurious WM_MOUSEMOVE message" as you suggested.
> Talk about code duplication!! Or was that by design?
> win32callback.inc and wincecallback.inc have a LOT of identical code!
> Not the best design to be honest.
> To see what I mean do the following.
> 1. Open the wincecallback.inc and place the top line of the editor
> on line 1499.
> 2. In a new tab, open the win32callback.inc and place the top line
> of the editor on line 1761.
> 3. Now switch between these two files/tabs. The code is copied
> line-by-line, it's as if you are viewing the same file! :-(
Except that they are using different types from a different windows unit
using different base types ...
So this could maybe be fixed by using shared include file, but not by
using some kind of inheritance as has be done with the gtk1 and gtk2
interface. And even then, code sharing is not an undivided pleasure ...
More information about the Lazarus