>Ko, thanks for your reply.
>I dont follow how the Page Tab caption changes colour when it is selected. I see that you add a label but how does this relate to the Tab caption ?
>
>Regards
>>Hi Gerard,
>>
>>I don't think there is a way you can do this directly.
>>But why not make a workaround for this.
>>Create a custom label class.
>>In that class place something like
>>
LPARAMETERS lEnable
>>This.Parent.BackColor = iif(lEnable,RGB(...),RGB(...))
>>Then in the init event of the pageframe place something like this
>>
Local lnTel
>>For lnTel = 1 to this.PageCount
>> This.Pages(lnTel).Addobject('lblColor','colorclass')
>>EndFor
>>
>>I hope this may help you,
Hello,
Everytime you change TAB's the UIEnable event is fired on the page witch loses focus, and on the page which gets the focus.
(The is only when you actually change pages, not by activating and deactivating the form or the pageframe and so.)
I said to use a label cause it is a simple control, but has a UIEnable event.
In the labels UIEnable event you can set the TAB properties.
Depending on the parameter lEnable you can set the TAB to Red or Gray.
Hope this helps you.