Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I make page unvisible?
Message
 
 
À
11/12/1999 15:34:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00292684
Message ID:
00302332
Vues:
35
Hi Mike,

I downloaded your new version of TabPosition and checked your code.

I should say (if it allowed to me), that this approach is very far from satisfactory.
Suppose, we want to change page visibility from page Refresh() method.
What should we write: this.parent.MakeTabVisible(this.count (or whatever property),.f.)? Why we can not just say this.visible=.f. I beleive, you add visible property on the fly, right? So, you should have an ability to read/write this property. In VB for each custom property in our ActiveX we have Set/Get. What is VFP analogue? Read/Write?
Same thing should be aplied for Caption property. If I want to change it in your TabPosition, I should write this.Caption=MyCaption and don't need to invoke some method explicitly. The same, of course, should be for PageCount. If, for example, I'll change this property after my object is instancinated, you should increase/decrease options.count appropriately. Etc...

So, do you understand, what do I mean? Your method (if you prefer to keep it) should be invoked automatically (behind the scene), if I simply write: this.visible=.f.

What are others guru (luminaries) opinions here?

Good luck!



>
>>I still haven't chance to use your class in our BTCrit project, but we're getting close:) So, I have a question for you: can I change pages visibility after initialization of the object? How?
>
>Actually, at runtime is the only way to do it. I gave it a method to make it easier now, and you can download the latest version from here. (Should be under "NEW" or File#9616). Just check out the sample form or the Text file included.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform