Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Grid Edit mode sizes textboxes incorrectly for Arial font
Does anyone know why the width of textboxes in a Grid, in Edit mode (view=1) are way out of wack if the Font is Arial? The widths only seem to be correctly sized if the font is MS Sans Serif? When the grid's font is Arial, VFP for some reason sets the size of the textboxes to about 3 times as large as they should be. Thus, a 40 character field runs all the way across my screen and beyond. Whereas, it should only be about a third of that size. I was hoping vfp8 would correct this. Or, maybe there's a way that I'm not aware of.
I want to use the Arial font for my grid, which I allow the user to switch back and forth between Edit and Browse view mode. One reason is that Arial can go down to a fontsize of 4. MS Sans Serif's minimum is size 9.
To see what I mean, simply:
1) Create a form and add a table to the dataenvironment.
2) Drop a grid on the form and set View=1 and FontName=Arial.
Then run the form.
Notice how long the textboxes are for each field (about 3 times as long).
Now set the font to MS Sans Serif and the textboxes are an appropriate size.
I think the internal logic assumes that the MS Sans Serif is being used (from the old Browse command code, maybe?). I'd love to know how to change the size of these textboxes. Changing the column.width doesn't affect Edit mode.
Thanks
Mark
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement