About XP Manifest lazarus / 39-Graphics ---------------------------------------------------------------------- VM_Hacker · 2010-03-01 08:29 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 · 2010-03-01 08:54 it's quite a good question. for example, Delphi with Manifest enabled draws Memo controls with XP style. ---------------------------------------------------------------------- JD · 2010-03-01 10:45 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. ---------------------------------------------------------------------- Paul Ishenin · 2010-03-01 13:03 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 · 2010-03-02 11:05 Thanks for the reply people. This is what i want to do Take a look at this attachment ---------------------------------------------------------------------- JD · 2010-03-02 12:09 Is that a Delphi application or a Lazarus application? ---------------------------------------------------------------------- JD · 2010-03-02 19:40 Quote from: VM_Hacker on March 02, 2010, 12:05:58 pmThanks 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.  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.  JD ---------------------------------------------------------------------- Zoran · 2010-03-03 04:10 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 · 2010-03-03 05:39 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. ---------------------------------------------------------------------- JD · 2010-03-03 09:21 Quote from: skalogryz on March 03, 2010, 06:39:14 amactually 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 ---------------------------------------------------------------------- Zoran · 2010-03-03 09:55 Quote from: JD on March 03, 2010, 10:21:28 amQuote from: skalogryz on March 03, 2010, 06:39:14 amactually 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 · 2010-03-03 10:26 QuoteI 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 · 2010-03-03 10:31 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 · 2010-03-03 10:56 Quote from: Leledumbo on March 03, 2010, 11:26:23 amIt'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. Quote from: Zoran on March 03, 2010, 11:31:44 amFor 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. ---------------------------------------------------------------------- Zoran · 2010-03-03 11:09 Quote from: skalogryz on March 03, 2010, 11:56:21 amThe note about RichMemo has been added to the page. Thank you. You are welcome. ---------------------------------------------------------------------- Leledumbo · 2010-03-03 11:56 QuoteActually RichMemo is fully working on Windows and OSX, some functionality is also available for Gtk2I was talking about TRichEdit from KOL-CE, discussed here. ---------------------------------------------------------------------- VM_Hacker · 2010-03-03 14:50 Quote from: JD on March 02, 2010, 08:40:11 pmQuote from: VM_Hacker on March 02, 2010, 12:05:58 pmThanks 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.  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.  JD Hahaha! Thanks! you almost copy the entire GUI but let's go back to my question how this RichText Remain Classic look? not "themed" ? ---------------------------------------------------------------------- Zoran · 2010-03-03 16:02 Quote from: VM_Hacker on March 03, 2010, 03:50:12 pm Hahaha! Thanks! you almost copy the entire GUI but let's go back to my question how this RichText Remain Classic look? not "themed" ? Eh... Obviously, people would really like to help, JD made several tests in Delphi and Lazarus, then even copied your form's looks, but... Seems to me that no one here actually knows the answer. ---------------------------------------------------------------------- JD · 2010-03-04 06:23 Quote from: Zoran on March 03, 2010, 05:02:10 pmQuote from: VM_Hacker on March 03, 2010, 03:50:12 pm Hahaha! Thanks! you almost copy the entire GUI but let's go back to my question how this RichText Remain Classic look? not "themed" ? Eh... Obviously, people would really like to help, JD made several tests in Delphi and Lazarus, then even copied your form's looks, but... Seems to me that no one here actually knows the answer. I tried the RichText control without borders around it but it still dosen't look right. I believe that "themeing" the control was an omission by the developer & the only way to correct it (without re- painting the control's borders on a form) is to make changes to the source code. Any takers?  JD ---------------------------------------------------------------------- Paul Ishenin · 2010-03-04 07:05 I don't know how that TRichMemo component is working but if it is using windows CreateWindow routing it should pass there WS_EX_CLIENTEDGE flag to have a valid border. Maybe someone passed another flag to get the border? ---------------------------------------------------------------------- VM_Hacker · 2010-03-06 06:15 Hello Guys, someone told that this RichText was a Third-Party Component It's "wxForm" widget. anyone, has it? B.R, VM_Hacker