oFolder:SetColor()

Post Reply
Willy
Posts: 117
Joined: Thu Mar 02, 2006 11:06 am
Location: Belgium

oFolder:SetColor()

Post by Willy »

I Tried this and this does not work.

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

Thanks

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

Post by Antonio Linares »

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
Willy
Posts: 117
Joined: Thu Mar 02, 2006 11:06 am
Location: Belgium

Post by Willy »

Thanks Antonio,

I have also tried with

oFold1:aDialogs[1]:Setcolor()

But this does also not work
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post by Otto »

Hello Antonio,
could you please post a bit of code how to change the color of the folder dialogs.
Thanks in advance
Otto
Willy
Posts: 117
Joined: Thu Mar 02, 2006 11:06 am
Location: Belgium

Post by Willy »

Code: Select all

1 24 "Windows.Man"
When you use this line in your Resources file, it will not work

Otherwise you can use this

Code: Select all

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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post by Otto »

Thank you, Willy. It is working.
Do you also know how to change the TAB of the folder?
Thanks in advance,
Otto
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

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

EMG
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post by Otto »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

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
Post Reply