Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid on a Pageframe
Message
From
11/10/2001 07:42:39
 
 
To
11/10/2001 06:44:52
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00566281
Message ID:
00566857
Views:
14
This message has been marked as the solution to the initial question of the thread.
Hi!

Jimi, indeed, I would like to help as I can.
Ok, lets see to this on another side - why dig what coused this when we can workaround this?

The workaround is simple. When you tell that grid works ok when it is not inside of the page frame, use it on the form, not on the page frame. Put grid on the form, set its Visible property to .F.. Then in the Activate event of the page where you want to put that grid, show grid by setting Visible to .T. and calling zorder() method to move it at top of page. In the Deactivate event hide it by setting Visible to .F. I do the same thing when neet to put ActiveX on the page. Control is really on the form, but for users it looks like it is on the page.

See if this can help you.

>>Hi!
>>
>>Jimi, it is very strange indeed and probably you have some code on the form and grid that fire multiple repeated times causing slow down of the refreshing. You can take a look to what is happening during refresh by using built in VFP feature - eventa tracking or coverage profiler. Foirst is a simple - open oputput window in the debugger and switch on events tracking just before the moment when grid is refreshed slowly. See what is in output window. You will see all events called during that process. In your code you can also use DebugOut command to display something in the output window to see also how your methods work in that process. This way you will see which events are called too much times and why. Then when you figure out something extra that was not predicted in your code, put SET STEP ON in that code to stop a program and see how it works in step-by-step mode.
>>
>>Let me know what you did figured out...
>>
>
>I removed any single script from the pageframe and grid but just the same.. I'm gonna change it to a listbox with array.. no time for more testing :(
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform