Recent

Author Topic: Designing in XP, running in old theme  (Read 8663 times)

Michael

  • Guest
Designing in XP, running in old theme
« on: December 22, 2004, 02:08:38 pm »
I'm running the latest version of Lazarus 0.9.2 in Windows XP.
While I'm designing my GUI, the Lazarus IDE uses XP themed controls.
However, when I run my program, I do not get the same XP themed controls , I get the old Windows 98 styled controls.
Is there a way to have the same look as the Lazarus IDE in my own programs?

Thanks.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2671
Designing in XP, running in old theme
« Reply #1 on: December 22, 2004, 02:36:20 pm »
You need to create a manifest for your app.
name it yourapp.exe.manifest or include it as resource (do a search on manifest on the forum)
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Lightning

  • Sr. Member
  • ****
  • Posts: 422
Designing in XP, running in old theme
« Reply #2 on: December 22, 2004, 03:38:47 pm »
There is a manifest in the Lazarus dir, check lazarus.rc, lazarus.res and lazarus.pp(i think) it contains a {$R} directive, also check the windres utility.
The future must be... Fast and OpenSource so...
Think Open and Lightning Fast!

Anonymous

  • Guest
Designing in XP, running in old theme
« Reply #3 on: November 13, 2005, 10:37:41 am »
i linked to an resource in the code as folowing: {$R C:\Program\Lazarus\Ide\lazarus.res}

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Designing in XP, running in old theme
« Reply #4 on: November 13, 2005, 10:43:46 am »
And it worked?

Anonymous

  • Guest
Designing in XP, running in old theme
« Reply #5 on: December 02, 2005, 11:24:23 pm »
Quote from: "sekel"
And it worked?

yes...   :? but the program was not executable after I compiled it an secound time...

LazaruX

  • Hero Member
  • *****
  • Posts: 597
  • Lazarus original cheetah.The cheetah doesn't cheat
Designing in XP, running in old theme
« Reply #6 on: May 23, 2007, 10:45:28 am »

 

TinyPortal © 2005-2018