Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I make page unvisible?
Message
 
 
À
11/12/1999 22:58:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00292684
Message ID:
00302398
Vues:
34
Hi Mike,
>
>>I should say (if it allowed to me), that this approach is very far from satisfactory.
>
>Sounds fair ...

I'm glad, you admit. I really didn't want to offend you and I hope, you didn't.

>>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...
>
>... Already done, try it. Do you expect something different? I tried to think a head about anyhitng someone might want changed at runtime ...

That's great. I've just checked your code more carefully. You use assign method for this property. So, I believe, you can use it for page visibility also. And for the caption. Am I right?
Another problem, which I found here: suppose, in Run-time we would use AddObject/RemoveObject for pageframe pages. What should we do here?

>
>>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.
>
>... Whoops, missed that one :-) The things about this, is that its apart of the Page, not the pageframe, which makes it harder to add a direct assign method without more classes (which I didn't want to have to do but might) ...
>
>>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.
>
>... Same thing. I have a feeling that the methods version for the caption and the visiblity.
>
>>In VB for each custom property in our ActiveX we have Set/Get. What is VFP analogue? Read/Write?
>
>I'm not sure what this means. Analogue? Like Music :-)

Did I use the wrong word here? :) Did you have experience with VB?

>
>>So, do you understand, what do I mean? ...
>
>Yep, thanks for being honest too. But, you do have the source code you know, and there's nothing preventing you from modifing it yourself and sending it to me or posting updated code here. Thanks for the heads ups though.

Yep, I can. But I'm not sure, that I can use your manner :) So, I prefer to just report about problems and let you fix them. :) If it doesn't sound good for you, I can spend my time on it.
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