Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change tab colours (In a Class)
Message
From
31/08/2000 07:31:04
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00411197
Message ID:
00411202
Views:
18
>I am trying to set a specific colour on a PageFrame current tab so that it is easily identified when I change tabs.
>(e.g. I want all tabs to be grey, except the current tab which I want Red)
>
>I would like to do this at the class level. So I set up an _assign method attached to the active page event. Now this works fine if I programatically change the Page , but not if I just select a tab by clicking on it.
>Is there maybe another way to have this functionality, at the class level.?
>
>Regards,
>
>Gerard


Instead of assign use access method. Something like :
with this
  .Setall('Forecolor',rgb(128,128,128),'Page')
  .pages(.ActivePage).Forecolor = rgb(255,0,0)
  return .ActivePage
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform