Recent

Author Topic: Menu icons size under windows Vista+  (Read 3543 times)

bobix

  • Jr. Member
  • **
  • Posts: 71
    • http://rechnik-bg.com
Menu icons size under windows Vista+
« on: February 27, 2014, 01:10:20 pm »
Using Icons bigger than 16x16 couse problem under Windows Vista , 7 , 8.
Everything is perfect under windows XP and Linux.
Does anyone have found solution for this issue?

Thank you for your time! :)

Lazarus 1.0.12 r42478 FPC 2.6.2 i386-win32-win32/win64
Lazarus 1.8.4 r57972 FPC 3.0.4 i386-win32-win32/win64

zeljko

  • Hero Member
  • *****
  • Posts: 1594
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Menu icons size under windows Vista+
« Reply #1 on: February 27, 2014, 01:21:17 pm »
hm..seem that > WinXP does not stretch icon to themed menuitem icon size.

bobix

  • Jr. Member
  • **
  • Posts: 71
    • http://rechnik-bg.com
Re: Menu icons size under windows Vista+
« Reply #2 on: February 27, 2014, 01:38:04 pm »
Yes. Even caption is not on right place :(
« Last Edit: February 27, 2014, 01:48:46 pm by bobix »
Lazarus 1.8.4 r57972 FPC 3.0.4 i386-win32-win32/win64

bobix

  • Jr. Member
  • **
  • Posts: 71
    • http://rechnik-bg.com
Re: Menu icons size under windows Vista+
« Reply #3 on: June 21, 2014, 11:27:03 pm »
I hit the rock with that one. Still cant make it work  :(
Lazarus 1.8.4 r57972 FPC 3.0.4 i386-win32-win32/win64

bobix

  • Jr. Member
  • **
  • Posts: 71
    • http://rechnik-bg.com
Re: Menu icons size under windows Vista+
« Reply #4 on: December 11, 2014, 06:36:11 pm »
I found the solution here:
forum.lazarus.freepascal.org/index.php/topic,17746.msg98569.html#msg98569

uses JwaUxTheme;

Procedure TForm1.FormCreate(Sender: TObject);
Begin
  //EnableTheming(False);  // This is System Wide!!!  Bad Idea!!!  Please do NOT do this!!!
  SetThemeAppProperties(0);  // This effects only the Application.  Better, but NOT exceptable.
end;

Procedure TForm1.FormClose(Sender: TObject; Var CloseAction: TCloseAction);
Begin
  //EnableTheming(True);
end;

 'Use manifest file to enable themes (Windows only)' should be unchecked.
Lazarus 1.8.4 r57972 FPC 3.0.4 i386-win32-win32/win64

 

TinyPortal © 2005-2018