[Qt] I need a hack

Paul Ishenin webpirat at mail.ru
Mon Sep 22 01:18:28 CEST 2008


Den Jean wrote:
> On Sunday 21 September 2008 17:32:10 zeljko wrote:
>   
>>> I want to teach qt-lcl return true titlebar color values. I looked at qt
>>> sources and found few places where they are requested from windows. I am
>>>       
>
> they actually use this call in an ifdef windows part:
>
> GetSysColor
> http://msdn.microsoft.com/en-us/library/ms724371(VS.85).aspx
>
> fpc:
> ./rtl/win/wininc/func.inc
> function GetSysColor(nIndex:longint):DWORD; external 'user32' 
> name 'GetSysColor';
>   
No, you dont understand. Yes, on windows it works through an ifdef. But 
if they found a linux, osx solution they'll add it near with the same 
ifdef. In any case GetDesktopPalette() will return colors I need.

And I think it is worse to use windows calls inside qt widgetset than 
using a hack around qt since last guaranty we will get working 
cross-platform solution.

Best regards,
Paul Ishenin.



More information about the Qt mailing list