Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My Grid is moving horizontally and I want it to stay sti
Message
From
31/10/1997 21:34:35
 
 
To
23/10/1997 21:14:16
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00054443
Message ID:
00057724
Views:
43
>>>>>>>>When I tab horizontally through my Grid, the first field disappears.
>>>>>>>>How can I make my GRID freeze as I tab through it?
>>>>>>>
>>>>>>>Set .resizable = .F. for each column and make sure the columns fit inside the grid.
>>>>>>
>>>>>>Hi Matt and thanks for anwering.
>>>>>>I changed the RESIZABLE property to F. I am still get the same thing.
>>>>>>What do you mean about making sure the cloumns fix inside the grid?
>>>>>>Are you saying, if the grid is to small, text1 will scroll?
>>>>>>Is there a way to check TETX1 length's?
>>>>>
>>>>>make it big enough to hold all fields and turn the horizontal scroll bar off
>>>>
>>>>Hi Dave - The fields for the GRID are big enough. For the ScrollBar property, I choose
>>>>2 for Vertical. When I tab horizontally through, it still moves.
>>>
>>>Rob,
>>>
>>>Make the GRID large enough to contain all the fields OR make the FIELDS small enough to fit in the grid.
>>
>>thanks Matt for the information.. :))
>Hi Robert.
>
>I sent this code to you earlier. Did you not get it? Or did it not work for you? Assuming the grid is the right size, try this code in your BeforeRowColChange event:
>
>IF This.RelativeColumn = <last column> THEN
>   IF (LASTKEY() = 4) OR (LASTKEY() = 9) OR (LASTKEY() = 13) THEN
>       nRow = This.ActiveRow
>       This.DoScroll(6)
>       This.ActivateCell(nRow,1)
>       NODEFAULT
>   ENDIF
>ELSE
>   IF This.RelativeColumn = 1 THEN
>      IF (LASTKEY() = 19) OR (LASTKEY() = 15) THEN
>          NODEFAULT
>      ENDIF
>   ENDIF
>ENDIF
>
>It worked for me.
>
>Good luck.
>
>Marcia

thanks for the code - rob
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Reply
Map
View

Click here to load this message in the networking platform