Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid display changes when cell is clicked
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01309111
Message ID:
01309156
Vues:
8
>>>>The only changes from default in the columns is Sparse = .F. and SelectOnEntry = .f.
>>>>
>>>>When the form is first loaded the data in the cells has no margin at top and left. (Looks Ugly.) When I click on any cell in a column the margin gets set properly on all cells in the column and stays that way as long as the form exists. What can I do to set the margin from the start?
>>>
>>>Do you have focus on the grid when form starts?
>>
>>Yes, I just made sure and it is selected at the start. There are two grids, a select from and a selected grid. Both have the same settings and the same problem. I tried setting focus to the column1.Textbox1 but it made no difference. It seems you have to click on them to make the change. There is code in the MouseDown event in every column but I don't think that make any difference. Is there a way to code a mouse click?
>
>You could use MOUSE CLICK command, but before you try what if you put Grid.Setfocus/Refresh code to Form.RightClick event and try it again with right-click on the form after it appeared.

Ed,
thanks for the help. The Form.RightClick you suggested didn't work. I just realized it could be because I don't have any data in the grids when the form starts. I set BindControls = .F. when the form loads and then set it to .T. after the cursor for the left grid (select from) is loaded. There will never be any data in the right column (selected items) on startup anyway, nothing has been selected. I tried the Mouse Click and it worked great so, for now, that will be my fix.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform