Lazarus

Using the Lazarus IDE => Options => Topic started by: netkiller on July 20, 2018, 04:48:26 am

Title: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
Post by: netkiller on July 20, 2018, 04:48:26 am
lazarus 1.8.4 groupbox radiogroup checkgroup not draw correctly when disabled in windows, lazarus 1.6.2 is ok
Title: Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
Post by: wp on July 20, 2018, 10:31:41 am
I cannot reproduce. Please give detailed steps how to see the bug, if possible post a little demo. What is your OS? (Windows 7?) Bitness? Bitness of Laz/FPC?
Title: Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
Post by: netkiller on July 20, 2018, 01:03:29 pm
OS is windows7 sp1 x64
Title: Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
Post by: netkiller on July 20, 2018, 01:33:01 pm
put a groupbox on a empty form, set groupbox's property enabled to false,  windows8.1 x64 is ok,
if i run this program exe in win7 sp1 x64, the problem is reproduced!
Title: Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
Post by: wp on July 20, 2018, 02:08:08 pm
I installed Laz 1.8.4 into my Win 7 VM which is 32 bit, though, and I still cannot reproduce the issue.

There is a related issue in bug tracker which is fixed in Lazarus trunk (https://bugs.freepascal.org/view.php?id=31670). So please try this version - you can try fpcupdeluxe to get trunk without interfering with your main installation.
Title: Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
Post by: ASerge on July 20, 2018, 07:42:51 pm
OS is windows7 sp1 x64
The same, but not reproduced.
Can especially themes?
Title: Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
Post by: netkiller on July 21, 2018, 08:01:41 am
win7 default theme -  aero windows7
Title: Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
Post by: wp on July 21, 2018, 10:12:03 am
No feedback whether the issue still exists with Lazarus trunk? Did you read my post?
Title: Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
Post by: BeanzMaster on July 21, 2018, 12:08:32 pm
Hi
Please update your windows 7 SP 1 to SP3, update your graphic driver and  all other old driver stuff.
Title: Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
Post by: Rusik on July 21, 2018, 01:56:18 pm
Hi
Please update your windows 7 SP 1 to SP3, update your graphic driver and  all other old driver stuff.

Emmm... What?

There is no SP3 for Windows 7.
Even SP2.

The last available is Convenience Rollup Update (KB3125574).
Title: Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
Post by: Josh on July 21, 2018, 02:52:05 pm
Hi
Have you tried using a different Font?
Have you turned on 'Use Manifest Resource ( and enable themes)' in project Options.

After Changing the above make sure you Do a Rebuild and Clean the project when compiling.

Title: Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
Post by: ASerge on July 21, 2018, 02:55:12 pm
win7 default theme -  aero windows7
What font is used?
Add this code to show its name:
Code: Pascal  [Select][+][-]
  1. procedure TForm1.FormCreate(Sender: TObject);
  2. begin
  3.   GroupBox1.Caption := Graphics.GetFontData(Font.Handle).Name;
  4. end;
Title: Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
Post by: netkiller on July 22, 2018, 04:21:41 am
run lazarus 1.8.4 for windows, new appliction project, put a groupbox on empty form, set groupbox's propety enabled to false,without change anything else, run it,  this problem will shown.

i test two pc, os is all win7 x64 sp1, this problem is same. it use microsoft yahei ui font。

i guess disabled groubox will draw by self, caption shadow distance calc is not right in some place.

lazarus 1.8.4 ide also showing this problem, so i think some code is must be wrong or os have bug?

Graphics.GetFontData(Font.Handle).Name will return unrecognizable characters, for fontname have chinese characters, GetFontData not convert correctly. it use 微软雅黑, equal microsoft yahei ui font.
Title: Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
Post by: netkiller on July 22, 2018, 05:02:12 am
i found way to skip it, the groupbox's font name is default, if i change to some other defined font name,
all things is right!

why? the os default font name is "微软雅黑",i  set the groupbox's font name to "微软雅黑", it is ok also.

lazarus1.8.4 get os default font name procedure  is not right if font name is not english?

Title: Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
Post by: ASerge on July 22, 2018, 05:07:23 pm
lazarus1.8.4 get os default font name procedure  is not right if font name is not english?
Most likely the problem is in the font, but it is difficult for me to check, because I do not have such fonts, and the default is Segoe UI.
Title: Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
Post by: netkiller on July 23, 2018, 04:31:32 am
Graphics.GetFontData direct convert TLogFont.lfFaceName(ansi) to string(utf8) maybe have problem if lfFaceName is not english.
TinyPortal © 2005-2018