Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set DoubleClick event for Text Boxes in Grids
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00398429
Message ID:
00401607
Views:
34
Glad it's working.

Now for the INIT time. Since you're working with a multipage pageframe, have each page initiate ONLY if the user clicks on it. This will give a minor lag time the first time a user clicks on the page, but during the form INIT only the first page will be loaded. Here's how:

1. Put the controls for each page into a container

2. Select the container and save it as a class.

3. Delete the container from the page. (Make form backup first, please)

4. In the page activate, put code to instantiate the container object. Be sure you check to see if it exists, so it will only be instantiated the FIRST time a user goes to that page.

5. Enjoy the new, speeded up form.

HTH
Barbara

>Barbara / Jess
>
>Thanks a million. That's working out great. I've noticed since I've added all my textbox classes to all 7 of my grids the load time for the form has increased quite a bit. Is there anyway around that? Should I do like I'm doing with the record source for each grid and not load them unless the user goes to that grid. That is, only add the textbox class object if they even view the grid? Would I do that in the Init of each grid?
>
>The few things you and Jess have taught me in this thread has helped me to understand grids and grid classes a whole lot better. Thanks again.
>
>Elgin
>
>>Sorry, I should have described this part better, but forgot - in fact *I* had to think a moment when doing this today.
>>
>>1. Go to your Form Controls toolbar.
>>
>>2. Click the 'library' icon (several books)
>>
>>3. Select ADD
>>
>>4. Use the file selector to pick the VCX containing the control you want to add to the grid
>>
>>5. Now on the grid (in your form) make sure the column you're adding to is selected. Then click first on the icon for the control (in the toolbar) and then on the column (in the grid). When you look at your property sheet you'll see that the control has been added to the column
>>
>>6. Go to the column properties and reset the currentcontrol to the new control.
>>
>>7. Repeat as needed for each column
>>
>>HTH
>>Barbara
>>
>>>Barbara,
>>>
>>>Well I thought I was able to add a textbox class to my grids by selecting the column I wanted then dragging it onto the column from the class list. I get "cannot add this object to a grid." What's the proper way to add a textbox class to a grid column in the form designer? Or even class designer? Do I have to use the AddOBject method?
>>>
>>>Thanks
>>>Elgin
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform