lazarus 1.8.4 groupbox radiobox checkbox huge bug? lazarus / 11-Options ---------------------------------------------------------------------- netkiller · 2018-07-20 02:48 lazarus 1.8.4 groupbox radiogroup checkgroup not draw correctly when disabled in windows, lazarus 1.6.2 is ok ---------------------------------------------------------------------- wp · 2018-07-20 08:31 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 · 2018-07-20 11:03 OS is windows7 sp1 x64 ---------------------------------------------------------------------- netkiller · 2018-07-20 11:33 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 · 2018-07-20 12:08 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 · 2018-07-20 17:42 Quote from: netkiller on July 20, 2018, 01:03:29 pmOS is windows7 sp1 x64 The same, but not reproduced. Can especially themes? ---------------------------------------------------------------------- netkiller · 2018-07-21 06:01 win7 default theme -  aero windows7 ---------------------------------------------------------------------- wp · 2018-07-21 08:12 No feedback whether the issue still exists with Lazarus trunk? Did you read my post? ---------------------------------------------------------------------- BeanzMaster · 2018-07-21 10:08 Hi Please update your windows 7 SP 1 to SP3, update your graphic driver and  all other old driver stuff. ---------------------------------------------------------------------- Rusik · 2018-07-21 11:56 Quote from: BeanzMaster on July 21, 2018, 12:08:32 pmHi 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 · 2018-07-21 12:52 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. ---------------------------------------------------------------------- ASerge · 2018-07-21 12:55 Quote from: netkiller on July 21, 2018, 08:01:41 amwin7 default theme -  aero windows7 What font is used? Add this code to show its name: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.FormCreate(Sender: TObject);begin  GroupBox1.Caption := Graphics.GetFontData(Font.Handle).Name;end; ---------------------------------------------------------------------- netkiller · 2018-07-22 02:21 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 · 2018-07-22 03:02 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 · 2018-07-22 15:07 Quote from: netkiller on July 22, 2018, 05:02:12 amlazarus1.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. ---------------------------------------------------------------------- netkiller · 2018-07-23 02:31 Graphics.GetFontData direct convert TLogFont.lfFaceName(ansi) to string(utf8) maybe have problem if lfFaceName is not english.