Recent

Author Topic: lazarus 1.8.4 groupbox radiobox checkbox huge bug?  (Read 7945 times)

netkiller

  • New Member
  • *
  • Posts: 12
lazarus 1.8.4 groupbox radiobox checkbox huge bug?
« 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
« Last Edit: July 20, 2018, 04:50:01 am by netkiller »

wp

  • Hero Member
  • *****
  • Posts: 11830
Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
« Reply #1 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?

netkiller

  • New Member
  • *
  • Posts: 12
Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
« Reply #2 on: July 20, 2018, 01:03:29 pm »
OS is windows7 sp1 x64

netkiller

  • New Member
  • *
  • Posts: 12
Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
« Reply #3 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!

wp

  • Hero Member
  • *****
  • Posts: 11830
Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
« Reply #4 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.

ASerge

  • Hero Member
  • *****
  • Posts: 2212
Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
« Reply #5 on: July 20, 2018, 07:42:51 pm »
OS is windows7 sp1 x64
The same, but not reproduced.
Can especially themes?

netkiller

  • New Member
  • *
  • Posts: 12
Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
« Reply #6 on: July 21, 2018, 08:01:41 am »
win7 default theme -  aero windows7

wp

  • Hero Member
  • *****
  • Posts: 11830
Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
« Reply #7 on: July 21, 2018, 10:12:03 am »
No feedback whether the issue still exists with Lazarus trunk? Did you read my post?

BeanzMaster

  • Sr. Member
  • ****
  • Posts: 268
Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
« Reply #8 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.

Rusik

  • Newbie
  • Posts: 3
Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
« Reply #9 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).

Josh

  • Hero Member
  • *****
  • Posts: 1270
Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
« Reply #10 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.

The best way to get accurate information on the forum is to post something wrong and wait for corrections.

ASerge

  • Hero Member
  • *****
  • Posts: 2212
Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
« Reply #11 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;

netkiller

  • New Member
  • *
  • Posts: 12
Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
« Reply #12 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.

netkiller

  • New Member
  • *
  • Posts: 12
Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
« Reply #13 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?


ASerge

  • Hero Member
  • *****
  • Posts: 2212
Re: lazarus 1.8.4 groupbox radiobox checkbox huge bug?
« Reply #14 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.

 

TinyPortal © 2005-2018