Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids.. Blah
Message
De
17/11/1998 11:24:58
 
 
À
17/11/1998 11:19:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00158261
Message ID:
00158286
Vues:
19
>>>I have a problem with a grid. I only want the user to be able to click on one column of the grid, but see 3 columns. As it is now, I have 2 columns disabled, and the controls in those columns, and vice versa for the other column. Even when I disable the column, the use can still click on that column and take focus away from the one I want them to be on. Any ideas how I can do this? TIA
>>
>>This example is too simple. You may keep Grid.LastActiveColumn object to provide SetFocus to needed column.
>>***Column.Control.GotFocus event
>>this.parent.parent.column1.setfocus
>>nodefault
>
>I tried that.. enabling the column and control in it.
>when I use
>***thisform.grid1.column3.gotfocus
>thisform.grid1.cloumn2.check1.setfocus()
>nodefault
>
>This makes the control lose focus but the column doesn't
>whether or not the column and control are disabled or not the column keeps the focus. BTW using VFP 6 if it matters.

Sorry, I don't understand what you said (probably typos). Could you repeat: is column2 getting focus or not? It was tested, and works Ok on my machine (VFP5).
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform