Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Frame background
Message
 
 
To
02/05/2004 13:17:09
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00900184
Message ID:
00900207
Views:
13
>I am sooo sorr for being vague. My apologies. I tend to multi-task too much (physically). There is a 6 page pageframe that my users are using. I want to change the background color of the active page only to become light gray, which is the defaul page background (i think). Once the user selects page 2 of 6, then the first page's background is changed and then page 2 backgroung is changed to the light gray color and all others are dark gray. Hope this clear things up or are they cloudier!??

Put this code into your base class of the pageframe and call it from the each page Activate.
FOR EACH loPage IN This.Parent.Pages
	IF Alltrim(loPage.Name) == Alltrim(This.Name) 
		loPage.BackColor = RGB(236,233,216)
	ELSE
		loPage.BackColor = RGB(128,128,128)
	ENDIF
ENDFOR
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform