Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Yellow border
Message
De
08/03/2006 11:53:41
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01102436
Message ID:
01102489
Vues:
18
>>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform