Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the default TextBox the Grid class uses
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00231515
Message ID:
00265738
Vues:
20
>Hi Kenneth,
>
>Works great. Had to change the addobject args around though.
>
>I ended up with
>
>FOR i = 1 TO THIS.COLUMNCOUNT
> THIS.COLUMNS(i).REMOVEOBJECT("text1")
> THIS.COLUMNS(i).ADDOBJECT("text1", "MyTextBoxClass")
>ENDFOR
>
>Thanks for the help

I used essentially this approach in my custom Grid. I'm running into an obscure problem though. This is a readonly grid, and for some reason the display of the textbox is shortened -- only in the cell with focus. I though perhaps the textbox was a different width than the column -- so tried manually setting the textbox to the same width as the columns.

I'm definitely doing something wrong in my textbox definition. If I set sparse to .f. all the controls are shortened. With sparse off only the cell with focus is truncated it.

Thanks in advance for any help.

P.S. I am using dynamic properties to highlight the whole row and make it look like a list box. Could this have something to do with my trouble.
Thanks

Gar W. Lipow
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform