Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A grid that won't display ?
Message
De
24/12/1999 19:26:45
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00306206
Message ID:
00308472
Vues:
38
>>
>I don't like to have custom methods of grid itself. You know, grid is too unstable thing, it loses its settings too often.
><
>
>Wow... you bascially invalidated every commercial framework on the market, especially Visual MaxFrame, which has loads of subclassed Grids.

We are not discussing commercial framework here. Correct? IMO, having grid within container class looks better, though I would not invent anything specific about this.
Actually, grid's instability appears when cursor (its recordsource) gets 'unstable', e.g. gets overridden by SELECT-SQL. Resordsource is secondary indication.


>I don't see how having a direct subclass of the Grid Class, with custom methods is affected by the Grids instability..... When you talk about the issues with columns, and not being able to subclass those, sure, that is a pain... However, the rationale you give here does not follow...... And by the way, grids by themselves do not lose their settings... It is usually the result of tinkering with the Recordsource Property....
>
>
>>
>Moreover, I don't like to subclass grid. I prefer to define grid as part of form or container. Form/container itself could be a class, but this is different story.
><
>
>OK. so you would create a container class, and then add a Grid to that class, and then in turn, add the container to a form... That is fine. Then you should add a custom method to the container, and communicate with that interface, instead of the Grid Interfacce... Would you agree with that????
>
I don't really follow you here. I understand interface as whole thing comprising all elements (including forms, containers, grid etc) together. I don't really know what mean as 'grid interface'. Container is good because it creates some kind of hierarchy. Realistically, grid will not work on its own, it will have some correlated controls around, some buttons, textbox etc. Look at Calendar Active-X. It's good example.


>
>Sounds way more complicated than it needs to be Ed. However, it is consistient with your other "Fox 2.x'ish code-centric" approaches....

That's not serious. Most of my projects have empty form page in project window, everything in class page.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform