Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-09

Display issues under Vista when using classic look (or with themes disabled)

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Kostas Michalopoulos

Hi list,

I found a bug in Lazarus that happens under Vista when the advanced visual themes are disabled and the mode is in "classic" theme (the one that looks like win9x/2k). The bug makes the text in buttons (TBitBtn probably since it does it only in the buttons with some icon) disappear and the grid in forms is drawn wrongly (with gaps between bunches of dots and drawing is *REALLY* slow, i assume the coords are wrong). Those are what i found at least, since Lazarus is pretty much unusable at this state.

Initially it thought it was a but in 0.9.25 but today i had to make something quick in Lazarus and since i thought that 0.9.25 is broken i reinstalled 0.9.24. However the bug happened there too, so i realized that its not the SVN version that is broken but something else :-). After thinking what i changed since i was using 0.9.24 last time, i remembered that i disabled themes and i even disabled the themes service. Initially i thought that this was the case and i reenabled the service but chose the classic look again. However this didn't fixed the problem and it only went away when i enabled the full compositing Aero theme.

I looked around a bit and it seems the problem exists only when theming is disabled and the classic look is used. The problem does not happen when Aero or XP-like theming is enabled (i can disable the compositing desktop but still use the "Aero-like" theme and the problem does not appear).

This happens with Lazarus and all programs which are made using Lazarus and run under Vista.

Kostas "Bad Sector" Michalopoulos

Reply by email

Reenen Laurie
to Kostas Michalopoulos
Kostas Michalopoulos wrote 10 lines
Hi list, I found a bug in Lazarus that happens under Vista when the advanced visual themes are disabled and the mode is in "classic" theme (the one that looks like win9x/2k). The bug makes the text in buttons (TBitBtn probably since it does it only in the buttons with some icon) disappear and the grid in forms is drawn wrongly (with gaps between bunches of dots and drawing is *REALLY* slow, i assume the coords are wrong). Those are what i found at least, since Lazarus is pretty much unusable at this state.

It may be related to this bug - http://bugs.freepascal.org/view.php?id=11590

Although in this case setting the theme to the "classic" theme is the workaround.

But what I've learnt so far about this thing is that Vista uses 3d (dunno if it's Direct X or OpenGL) for drawing the advanced themes. My application uses 3d for the application itself, and the icons on the buttons (TSpeedButtons) are displayed correctly.

Regards,
-Reenen

o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions.

Reply by email