[Lazarus] Forms Color on Linux
Lee Jenkins
lee at datatrakpos.com
Fri May 23 17:41:06 CEST 2008
Graeme Geldenhuys wrote:
> Lee Jenkins wrote:
>> Hmmm. That's a bit unfortunate. I get the idea of theming and centralizing the
>> user feel, etc but that doesn't take into account task based applications.
>
> Exactly our issue as well. We have a GUI application designed for kids
> and need it colourful. We also have a admin GUI application designed for
> our franchises and needed custom (corporate) colours overall. We also
> use colour for input validation forms. Most of these worked when we ran
> under Windows, but not when it's run under Linux. Defeats the purpose of
> cross platform apps. Our custom drawn toolkit solves all these issues.
>
>> I've noticed also that other things like MouseDown and MouseUp seem to act
>> differently (kind of sluggish) in GTK1/2 or maybe its Gnome in general. That's
>> a show stopper for me.
>
> Which components? LCL-GTK2 does feel slow compared to other non-LCL GTK2
> based applications. GTK1 (I've got the Lazarus IDE compiled with in)
> seems okay.
>
This particular component is one that I wrote that simulates a button. It's
derived from TShape and changes its border (pen) color and background (brush)
color on mousedown and then changes it back on mouse up.
I've noticed it with plain TButton too however. For instance, I have a simple
test app that loads a TListView with dummy data in a 50 count loop. Many times
you will not see the TButton's down state, the code to load the dummy data will
just run. You can get it to work if you are conscious of pressing down and then
wait maybe 150-250 ms and then release. Most people don't do that though ;)
--
Warm Regards,
Lee
More information about the Lazarus
mailing list