Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Biz texbox changing columns DynamicInputMask
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00418444
Message ID:
00418449
Vues:
23
>Hi,
>
>I have a special texbox, defined inside a class, and I want to do the following. This texbox will be always inside a grid.
>
>Changing the DynamicInputMask of his parent column, but in the init of the texbox.
>
>I tried to do:
>
>(In the Init of the textbox):
>
>This.parent.DynamicInputMask = this.InputMask
>
>No success... well with the Debugger I see that the column's DynamicInputMask is changed, but doing a step, I go into the grid's init that changes this back. Hum...
>
>Can anoybody know the solution?
>
>I want to this cause I don't want to change all the column's in all the forms I have, also this InputMask can change depending on certain values in my oapp object.

Pablo,

You cannot do that in the init of the textbox.
The object are initialized from innermost to outermost, so textbox, column, grid, form.
But you can do this in the grids init event with:
this.MyColumn.DynamicBackColor = ....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform