Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Center Row in Grid
Message
From
12/04/2002 07:20:54
 
 
To
12/04/2002 06:43:45
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00643593
Message ID:
00644149
Views:
17
Hi!

Well, setting focus to grid and returning it back causes a lot of additional events firing (that also might cause slow down of refresh), and it has a lot of nusiances (like you mentioned in this message). It is much better to do not use DoScroll approach in such case, but just use additional refresh with cleared up Dynamic* properties, like in the FAQ article. Anyway, it is up to you.

>Hi!
>this message is only to be complete with the task
>
>for more general work change
>
>...
> IF VARTYPE(THIS.ACTIVECONTROL)=T_Object AND !ISNULL(THIS.ACTIVECONTROL) THEN
>  loControl = .ACTIVECONTROL
> ENDIF &&VARTYPE(this.ActiveControl ...
>...
>
>
>with
>
>
>...
> IF TYPE('APPLICATION.ACTIVEFORM')=T_Object;
>   AND !ISNULL(APPLICATION.ACTIVEFORM);
>   AND TYPE('APPLICATION.ACTIVEFORM.ACTIVECONTROL')=T_Object;
>   AND !ISNULL(APPLICATION.ACTIVEFORM.ACTIVECONTROL) THEN
>  loControl = APPLICATION.ACTIVEFORM.ACTIVECONTROL
> ENDIF &&VARTYPE(APPLICATION.ACTIVEFORM ...
>...
>
>
>My initial VARTYPE is wrong approach for that, it will fail.
>
>APPLICATION.ACTIVEFORM is only important if more than one form is working (let's say synchronised working)
>
>Agnes
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
Reply
Map
View

Click here to load this message in the networking platform