Recent

Author Topic: About XP Manifest  (Read 21655 times)

VM_Hacker

  • Newbie
  • Posts: 4
About XP Manifest
« on: March 01, 2010, 09:29:22 am »
Hello,

I just wanna ask if there's any existing components for delphi/lazarus like for example if you add 'XPManifest' in your form. The Memo, ListBox or RichText remain classic look and other objects like buttons, status bar and progress bar shows xp look a like.

Best Regards,
VM_Hacker

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2269
    • havefunsoft.com
Re: About XP Manifest
« Reply #1 on: March 01, 2010, 09:54:39 am »
it's quite a good question.

for example, Delphi with Manifest enabled draws Memo controls with XP style.
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

JD

  • Hero Member
  • *****
  • Posts: 1758
Re: About XP Manifest
« Reply #2 on: March 01, 2010, 11:45:20 am »
All we have in Lazarus is a checkbox under 'Project Options' that allows you to apply XP themes to your project. This checkbox is enabled by default so if you uncheck it, your project will have the classic Win 98/2000 look on Windows.

Having said that, I tried to test your assertion by creating two projects each on Windows Vista & XP - one in Lazarus 0.9.29 fpc 2.3.1 and the other in Delphi 2007 for Win 32. Each project has a TMemo control as well as a TListBox control. Since Lazarus has no TRichText control integrated, I did not test it. I know some 3rd party TRichText controls exist for Lazarus but I don't use them.

I attach my results in 4 screenshots.

Honestly, I don't see much difference between them. Lazarus XP themes compare very well with Delphi on Windows in my opinion.
« Last Edit: March 01, 2010, 11:48:14 am by JD »
Windows (10, 7) - Lazarus 2.0RC3/FPC 3.2, NewPascal, Delphi

Indy 10.6 series; mORMot; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

Paul Ishenin

  • Sr. Member
  • ****
  • Posts: 274
Re: About XP Manifest
« Reply #3 on: March 01, 2010, 02:03:25 pm »
Delphi TXPManifest is a deprecated component. Who needs it if you can just check an option in the project options to enable/disable themes

VM_Hacker

  • Newbie
  • Posts: 4
Re: About XP Manifest
« Reply #4 on: March 02, 2010, 12:05:58 pm »
Thanks for the reply people.


This is what i want to do Take a look at this attachment

JD

  • Hero Member
  • *****
  • Posts: 1758
Re: About XP Manifest
« Reply #5 on: March 02, 2010, 01:09:42 pm »
Is that a Delphi application or a Lazarus application?
Windows (10, 7) - Lazarus 2.0RC3/FPC 3.2, NewPascal, Delphi

Indy 10.6 series; mORMot; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

JD

  • Hero Member
  • *****
  • Posts: 1758
Re: About XP Manifest
« Reply #6 on: March 02, 2010, 08:40:11 pm »
Thanks for the reply people.


This is what i want to do Take a look at this attachment


Here's my attempt at recreating the GUI of the application in your screenshot using Lazarus.  O:-)

I think the Lazarus version is better because the TMemo control retains the XP theme.

So go ahead & use Lazarus, it is good enough for modern GUI applications.  :D

JD
Windows (10, 7) - Lazarus 2.0RC3/FPC 3.2, NewPascal, Delphi

Indy 10.6 series; mORMot; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

Zoran

  • Hero Member
  • *****
  • Posts: 1460
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: About XP Manifest
« Reply #7 on: March 03, 2010, 05:10:11 am »
I don't think that you people understand the question.
It was in the first place -- when themese are enabled, can you force some particular controls to remain classic look.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2269
    • havefunsoft.com
Re: About XP Manifest
« Reply #8 on: March 03, 2010, 06:39:14 am »
actually i think that the problem is that some controls still retain Classic view, though should be themed.

take a look at the screen shot. As you can see for Memo and buttons themes are enabled, but RichMemo is still drawn classic.
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

JD

  • Hero Member
  • *****
  • Posts: 1758
Re: About XP Manifest
« Reply #9 on: March 03, 2010, 10:21:28 am »
actually i think that the problem is that some controls still retain Classic view, though should be themed.

take a look at the screen shot. As you can see for Memo and buttons themes are enabled, but RichMemo is still drawn classic.

You're right. The RichMemo retains the classic look even when XP themes are enabled. I'll take a closer look at as soon as I can.

JD
Windows (10, 7) - Lazarus 2.0RC3/FPC 3.2, NewPascal, Delphi

Indy 10.6 series; mORMot; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

Zoran

  • Hero Member
  • *****
  • Posts: 1460
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: About XP Manifest
« Reply #10 on: March 03, 2010, 10:55:03 am »
actually i think that the problem is that some controls still retain Classic view, though should be themed.

take a look at the screen shot. As you can see for Memo and buttons themes are enabled, but RichMemo is still drawn classic.

You're right. The RichMemo retains the classic look even when XP themes are enabled. I'll take a closer look at as soon as I can.

JD

I can't even find RichEdit on component pallete?!
Where is it? Is it perhaps in some additional package I should add manually?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8109
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: About XP Manifest
« Reply #11 on: March 03, 2010, 11:26:23 am »
Quote
I can't even find RichEdit on component pallete?!
Where is it? Is it perhaps in some additional package I should add manually?
It's not yet in LCL. Someone ever make one but it only works on Windows. The RichMemo in the earlier post is a 3rd party package you can find in here.

Zoran

  • Hero Member
  • *****
  • Posts: 1460
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: About XP Manifest
« Reply #12 on: March 03, 2010, 11:31:44 am »
Thank you, Leledumbo, I found it finally (TRichMemo). So, it is additional component.

For some reason it's not listed here, that's why i didn't find it at first. I advise to author to put the link on that list.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2269
    • havefunsoft.com
Re: About XP Manifest
« Reply #13 on: March 03, 2010, 11:56:21 am »
It's not yet in LCL. Someone ever make one but it only works on Windows.
Actually RichMemo is fully working on Windows and OSX, some functionality is also available for Gtk2.

For some reason it's not listed here, that's why i didn't find it at first.
The note about RichMemo has been added to the page. Thank you.
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

Zoran

  • Hero Member
  • *****
  • Posts: 1460
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: About XP Manifest
« Reply #14 on: March 03, 2010, 12:09:06 pm »
The note about RichMemo has been added to the page. Thank you.

You are welcome.