Author | Topic: TitleBar Color | |
---|---|---|
Chris Palmer | TitleBar Color on Thu, 04 Nov 2021 10:42:33 +0000 Hello Is there anyway to override the windows default color and change the color of the :titlebar in a simple XbpDialog() ? Background and text ? Thanks Chris | |
Jim Lee | Re: TitleBar Color on Fri, 05 Nov 2021 04:52:19 +0100 hi, > Is there anyway to override the windows default color and change the color > of the :titlebar in a simple XbpDialog() ? search for "SetSysColors" in Newsgroup. it will change Color "System-wide" ! ! Note : when change "System-Color" this Way it will be restore after re-boot with Value from Registry HKEY_CURRENT_USER\Control Panel\Colors --- DLLFUNCTION SetSysColors(n,@s,@v) USING STDCALL FROM USER32.DLL DLLFUNCTION GetSysColor(n) USING STDCALL FROM USER32.DLL Problem : i was not able to get it work under Xbase++ v1.9.355 so i have to use Ot4xb @USER32:SetSysColors(1,aNew,aRGB) nRGB := @USER32:GetSysColor(::aFarben[i][2]) > Background and text ? that is "easy" using "Presentation Parameter" oDialog:DrawingArea:SetColorBG( {56,56,56}) oDialog:DrawingArea:SetColorFG( {0, 255, 255}) |