Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to subclass the standard grid and have my own textbo
Message
De
01/10/1997 15:06:24
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00051777
Message ID:
00052724
Vues:
43
>>>Is there a way to make my "sub-classed" grid column unfurls with my own >>>"sub-classed" textbox? >> >>Welcome to the club. I've complained of the same thing at least twice >>this year, and I don't remember any useful response. > >Well, what you _can_ do is use the ASELOBJ() function on the grid, iterate >through the columns, remove the default textbox, and add your custom >textbox. We're talking something else here. All this stuff is possible from within the form designer, but - grid is the only class where you can't set different defaults when you add new elements. Come to think of it - all the container classes behave like that. I've had an optiongroup class with defined two option buttons; these two buttons were not of the base class. When I've changed the ButtonCount to three, the form designer added the third button - but the button was different from the first two: it belonged to the base class. Now is there any way to change this behavior? I'll probably become everyone's nuisance here, but: is there any way to change defaults, and is there a way to do it programmatically. The above process may be performed - like when you have a grid without record source, add one, and it gets the default columns. Then you go thru the columns and replace headers, delete textboxes and add your controls. Fine - but what about the overhead? I plan for a class of dynamic grids, which will be built at runtime. Do I have to run this code upon every instance of it, or can I have a different grid class, with _my_ default headers and textboxes?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform