Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quick form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00572149
Message ID:
00572165
Vues:
42
This message has been marked as a message which has helped to the initial question of the thread.
>>>Hi everybody,
>>>
>>>When I need to create a form based on some table I use the following trick:
>>>
>>>1) I place table in DE (when I'm done, I remove it, because I always prefer to open them programatically).
>>>
>>>2) I drag and drop fields.
>>>
>>>3) I rename labels, fields, set autosize for labels to .t.
>>>
>>>4) I open form as a table and change classes from base classes to my classes.
>>>
>>>3 and 4 are tedious... I probably can adjust field mappings in Option/Tools, but I don't want to make them permanently, because my classes could change, etc.
>>>
>>>Do you know another trick to simply create forms?
>>>
>>>Thanks in advance.
>>
>>For 3 and 4 you could simply click on any control on form go to command window and run your nonregistered builder (or even write select block and execute) :
>>
>>aselobj(aForm,1)
>>aForm[1].Setall('Autosize',.T.)
>>etc
>>
>>Cetin
>
>Oops. I used this technique for grids, but haven't thought about using it here... I'll probably write a simple Builder to convert names, classes, etc.

Are you sure that it is more work to remap the classes from time to time, then manually change them hacking the SCX?
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform