[Lazarus] Nice Lazarus ScrabbleControl, also a Gtk2 Bug

Marc Weustink marc at dommelstein.nl
Fri Aug 9 14:19:39 CEST 2019


Anthony Walter via lazarus wrote:
> While demonstrating objects to kids in my computer programming classes 
> for kids this summer, I wrote a Scrabble board game control. It's on 
> Github right now released under the LGPL.
> 
> Here is a brief video demonstration:
> 
> https://cache.getlazarus.org/videos/scrabble.mp4
> 
> The Github page for this free control is here:
> 
> https://github.com/sysrpl/Lazarus.Scrabble
> 
> Also, I found a bug with the LCL that prevents arrow key processing on 
> Gtk2 (and maybe Gtk3) which I've written up here:
> 
> https://bugs.freepascal.org/view.php?id=35942

Preferred way is to add a patch for those lines. You call your solution 
a hack, but is the context of gtk2 this is ok.


About the mess you were talking about in your presentation....
Note that gtk1 was the first widgetset used by Lazarus. At that time 
there was no idea how to solve things and having one generic seemed OK 
at that time. What you see now is alread a reduced splitup handler :)

The windows widgetset was modeled after gtk1 and when gtk2 came we had 
the illusion that we could support gtk1 and gtk2 from one codebase.
This became a mess and they were splitted.

At that time it became clear that this wasn't the way the get forward 
and when I started with the Carbon interface I decided to move event 
handlers to the specific widgets. This design is later used for other 
widgetsets. The gtk and windows widgetset would require a complete 
rewrite. Besides that I wasn't really happy with the new design.
It never came that far to.

Marc



More information about the lazarus mailing list