Folder Colors

Post Reply
Randal
Posts: 250
Joined: Mon Oct 24, 2005 8:04 pm

Folder Colors

Post by Randal »

All,

Is there anyway to change the folder colors and use xp themes? I've been using xp themes with FWH Apr 2006 and my folders had the same background color as the dialogs. I just upgraded to latest FWH and now my folders have a white background. On one window where we have 2 folders and a lot of controls it's just too white! I saw another thread about this topic and tried the suggestion:

oFld:SetColor(Rgb(0,0,0),Rgb(200,200,255))
oFld:aDialogs[1]:SetColor(Rgb(0,0,0),Rgb(200,200,255))
oFld:aDialogs[2]:SetColor(Rgb(0,0,0),Rgb(200,200,255))

but this has no effect. Am I doing something wrong or is there another way?

Thanks,
Randal
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Randal,

In class TFolder, search for these lines and comment them out:

Code: Select all

            // if Empty( oDlg:oBrush:hBitmap )
            //    oDlg:bEraseBkGnd = { | hDC | DrawPBack( oDlg:hWnd, hDC ), 1 }
            // endif   
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Folder background

Post by TimStone »

You could also use a BMP background for a nice result.
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
Randal
Posts: 250
Joined: Mon Oct 24, 2005 8:04 pm

Post by Randal »

Antonio,

Thanks, that worked great.

Randal

Antonio Linares wrote:Randal,

In class TFolder, search for these lines and comment them out:

Code: Select all

            // if Empty( oDlg:oBrush:hBitmap )
            //    oDlg:bEraseBkGnd = { | hDC | DrawPBack( oDlg:hWnd, hDC ), 1 }
            // endif   
Randal
Posts: 250
Joined: Mon Oct 24, 2005 8:04 pm

Re: Folder background

Post by Randal »

TimStone wrote:You could also use a BMP background for a nice result.

Tim,

Thanks for the suggestion. Do you have an example of that?

Thanks,
Randal
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

BMP background

Post by TimStone »

Sure.

DEFINE BRUSH oBrush RESOURCE "SKY"
DEFINE DIALOG oDlg RESOURCE "RES001" BRUSH oBrush TRANSPARENT OF oWnd FONT oWnd:oFont

RES001 is the dialog resource stored in your .rc file
SKY is the BMP resource also stored in your .rc file

You can use a pattern bitmap, that tiles or you can use a picture converted to a BMP that would fit into the background. I use both. It may not be just like Office 2007, but it does give good contrast.
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
Post Reply