>>>Hi everybody,
>>>
>>>When you switch between pages in a pageframe, the currently active page has a yellow border at the top.
>>>
>>>In one of our pages we have buttons, that simulate pages (e.g. when you click on a button, a new container is added/made visible). I'd like to have the same visual appearance for that clicked button ("active page").
>>>
>>>Do you know, how this could be achieved?
>>>
>>>Thanks in advance.
>>
>>- put the button into a container subclass.
>>- add a shape with the yellow/orange effect
>>- set the shape to visible/invisible ....
>
>Sounds doable. I guess, with just button class it would be harder, correct? I would prefer to have a special button class rather than container class... Since we already have this form, I believe it would be easier to change to button's class...
You can add specific code to the button
... when button active the page
this.parent.Addobj(this.name+"effect","shapeYellow",this)
this.parent.removeobject(this.name+"effect")
unfortunately the VFP OOP model is not very flexible,
and this code contaminates the Parent object because a button doesn't allow AddObject.