General information
Category:
Forms & Form designer
>>>>Is there any way VFP 5.0 will allow me to change a pages color when it is activated/deactivated?
>>>>Thanks for any help.
>>>>
>>>>John Ingalls
>>>
>>>***Page.Activate event
>>>
>>>if this.backcolor=65280
>>> this.backcolor=0
>>>else
>>> this.backcolor=65280
>>>endif
>>>this.refresh
>>>
>>Thanks for the quick response. I'll try it out and let you know how it works for me.
>>John I
>
>It was just a quick example to show you how to change backolor in run-time. Surely, you will make it more sophisticated, adding e.g. similar code to Page.deactivate event.
If you want to make it really slick, create a PageFrame class and add a PageActive and PageInactive property. If the property is empty, use the regular Page.BackColor, otherwise refer to these properties.
But I guess you already know this.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only