Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving record pointer while scrolling in grid
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00018962
Message ID:
00018978
Views:
36
>>Arnon,
>>>
>>> I was thinking of the scrolled events, but the parameters through me off.
>>> Will I have to use my next/prior methods that I use for my toolbar, or is
>>> there an easy syntax I can use to do this? After it sets the pointer I'll
>>> have to set focus to the first text box. My main problem is if I scroll to
>>> a record, go to the next page to edit data I need to have the current
>>> record selected or it will go back to the default.
>>
>>what exactly do you want?
>>what you are trying to do is that even if the user didn't explicitly clicked on the top
>>record
>>the top record will be the active one?
>>
>>Arnon
>
>When the user clicks the UP or DOWN arrows in the scroll bar, the record pointer will change to the next or previous record. What I have here is a scrolling grid. One column 300 by 480 pixels. I then created a container and dropped several text boxes and labels on it. I then dropped the container (also 300 by 480) onto my column. Now when I *scroll* the grid, the data in all the text boxes change. I did this due to the amount of information we input into the table. So I elected to create 3 pages with textboxes of this table. Now, if I select ANY text box on ANY page my current record pointer is set. I can then go from page to page and make my entries. But if I need to go to this record, i scroll to it, but it is not the active record until i select a txtbox. Thus, when I *scroll* to PASKETTS record, switch pages, I am still on JOHNSONS record because I didn't select a txtbox to make that record active! Pretty thick, eh?

IRC at 1500! I'll be there! I have a bmp of the form so you'll have an idea of what I'm talking about.
Jon Paskett

Microsoft Certified Systems Engineer
We all have to start somewhere...
Sometimes over again!
Previous
Reply
Map
View

Click here to load this message in the networking platform