Recent

Author Topic: First steps with Lazarus, poor looking button  (Read 7783 times)

Verdi

  • Newbie
  • Posts: 4
First steps with Lazarus, poor looking button
« on: October 17, 2007, 10:45:13 am »
Hi,

Actually I do my first steps with Lazarus.

I dropped a button and an entry field on my form.

During design time:
There is a nice looking blue button.
The entry field looks 2-dimensional.

During run time:
There is a very poor looking grey button.
The entry field is now 3-dimensional.

I use Windows XP.

What do I have to do to get the same look of the components during design and run time? The button at run time looks really very poor.

Thanks for every help.

Greetings from Switzerland
Marco

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2695
RE: First steps with Lazarus, poor looking button
« Reply #1 on: October 17, 2007, 01:29:17 pm »
Check in project options (first tab): use manifest
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Paul Ishenin

  • Sr. Member
  • ****
  • Posts: 274
RE: First steps with Lazarus, poor looking button
« Reply #2 on: October 18, 2007, 05:08:36 am »
This is true only for svn version (or snapshot)

Verdi

  • Newbie
  • Posts: 4
First steps in Lazarus, poor looking button
« Reply #3 on: October 18, 2007, 08:19:13 am »
Thanks for your help.

I found an explanation how to use a manifest file.
For example: project1.exe.manifest

It works now, the components looks now the same at design and at run time.

Greetings from Switzerland
Marco

antonio

  • Hero Member
  • *****
  • Posts: 605
RE: First steps in Lazarus, poor looking button
« Reply #4 on: October 18, 2007, 04:00:17 pm »
You can use a tool like WinXPTool, or WinXPComp component, http://br.geocities.com/antoniog123456/ , which minimizes errors.

If you want your program to run on Linux too, you could use compiler directives to it:

{$ifdef WINDOWS}
// resource file name or unit file name on uses
{$endif}


 

TinyPortal © 2005-2018