Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Yellow border
Message
From
08/03/2006 11:53:41
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01102436
Message ID:
01102489
Views:
19
>>>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)
* shapeYellow bind it to the button ( move, anchor, .... )
* deactivate
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform