Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids 101
Message
From
07/11/2003 10:10:27
 
 
To
07/11/2003 05:44:27
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00846808
Message ID:
00847643
Views:
40
Cetin:

Your solution is not 100% complete. If I wanted to completely disable the down arrow, I could say:
If InList(nKeyCode,24,145)
but if I want the capability to use it except for the last line, then this doesn't work, since the undesirable behaviour occurs when going from the second to last row to the last! Even saying
If InList(nKeyCode,24,145) and Recno()=Reccount() - 1
would not work, for that would prevent the user from moving from the second to last row to the last.

Yossi



>>Einar:
>>
>>My record pointer is at the top of the table.
>>This is a case where I DO NOT want scrolling and I took advantage of the scrollbars = 0 option. Nevertheless, if and only if the grid has the same or less number of rows as there are records in the cursor, it allows me to scroll with the down arrow or with pagedown, leaving an empty row at the bottom. I do not want the user to be able to scroll. I will provide her with enough rows to view the data.
>>
>>Yossi
>>
>>>>If the grid has the same number of rows as there are records in the cursor, if I press the down arrow, the top rows will disappear one by one. The only way that I have have found to avoid this behavior is to make the grid at least one full row taller than there are records, NOT a very elegant solution! Any suggestions?
>>>
>>>I don't think I understand your problem. One reason for using a grid is because you want to display more information than you can fit on your screen i.e. so you can navigate with the scrollbars.
>>>Maybe your problem is that your record pointer is at EOF
>
>In column where you put filename :
>
>* Text1.keypress
>LPARAMETERS nKeyCode, nShiftAltCtrl
>If InList(nKeyCode,24,145) and Recno()=Reccount()
> nodefault
>endif
>
>Cetin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform