FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour oFolder:SetColor()
Posts: 117
Joined: Thu Mar 02, 2006 11:06 AM
oFolder:SetColor()
Posted: Fri Sep 21, 2007 11:41 AM

I Tried this and this does not work.

Is there a way to change the color of a folder.

Thanks

Willy.

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
oFolder:SetColor()
Posted: Fri Sep 21, 2007 11:59 AM

Willy,

If you are using XP themes then you can't change the folder color

You can change the color of the dialogs that the folder manages oFld:aDialogs

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 117
Joined: Thu Mar 02, 2006 11:06 AM
oFolder:SetColor()
Posted: Fri Sep 21, 2007 12:03 PM

Thanks Antonio,

I have also tried with

oFold1:aDialogs[1]:Setcolor()

But this does also not work

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
oFolder:SetColor()
Posted: Sat Oct 20, 2007 03:05 PM

Hello Antonio,
could you please post a bit of code how to change the color of the folder dialogs.
Thanks in advance
Otto

Posts: 117
Joined: Thu Mar 02, 2006 11:06 AM
oFolder:SetColor()
Posted: Sun Oct 21, 2007 08:25 AM
1 24 "Windows.Man"


When you use this line in your Resources file, it will not work

Otherwise you can use this

oDlg:SetColor(Rgb(0,0,0),Rgb(200,200,255))

oFold1:SetColor(Rgb(0,0,0),Rgb(200,200,255))

oFold1:aDialogs[1]:SetColor(Rgb(0,0,0),Rgb(200,200,255))
oFold1:aDialogs[2]:SetColor(Rgb(0,0,0),Rgb(200,200,255))
oFold1:aDialogs[3]:SetColor(Rgb(0,0,0),Rgb(200,200,255))
oFold1:aDialogs[4]:SetColor(Rgb(0,0,0),Rgb(200,200,255))
oFold1:aDialogs[5]:SetColor(Rgb(0,0,0),Rgb(200,200,255))


It works with me.

Greetings

Willy
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
oFolder:SetColor()
Posted: Sun Oct 21, 2007 08:38 AM

Thank you, Willy. It is working.
Do you also know how to change the TAB of the folder?
Thanks in advance,
Otto

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
oFolder:SetColor()
Posted: Sun Oct 21, 2007 08:54 AM

Try assigning oFolder:aPrompts[ n ] and refresh the folder (not tested).

EMG

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
oFolder:SetColor()
Posted: Sun Oct 21, 2007 11:16 AM

How do you assingn?
I tried
oFld:aPrompts[ 1 ]:SetColor(Rgb(0,0,0),Rgb(168,207,110))
but get no exported method.

Regards,
Otto

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
oFolder:SetColor()
Posted: Sun Oct 21, 2007 11:19 AM
Otto wrote:Do you also know how to change the TAB of the folder?


I thought you wanted to change the prompt of a TAB.

EMG

Continue the discussion