Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET POINT and numeric input
Message
 
To
11/01/2002 10:16:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00603396
Message ID:
00603503
Views:
28
>>This is what I recalled as an aspect I didn't expect. I found it "neat" and couldn't reason how it would work. More object-like than I even expected or so. But inconvenient for you. Try AutoYield for fun (won't help you, but in order to understand or so); maybe turn event processing off (by means of this), SET POINT, turn event processing on and Refresh the control only.
>
>I don't quite understand. Do you expect _vfp.AutoYield = .F. to avoid the refreshing of "other" controls?
>
>I tried the following in TextBox.GotFocus():
>
>
>_vfp.AutoYield = .F.
>set point to "."
>_vfp.AutoYield = .T.
>
>
>The same in LostFocus(), changing "." to ",". "Other" controls are still refreshed.
>
>Hilmar.

Yes, that's what I meant. So it didn't work as I already expected. That is, if it is arranged by means of events (since the events will be bufferd until AutoYield = .T.). But IS it done by events ?
Again, in order to understand, we'd have to learn some more;

What if you'd put a wait under the Set Point, before the reset of the next AutoYield ? Will all change ? If yes, it won't be events doing it IMO and there is a big chance there is no solution.
Now let's assume it is events. Try something with the Draw (and NoDefault or whatever may cause the form not to be repainted. Be careful here, because it you'd succeed by means of this "solution", VFP's internal status might be different. Might, because it may be about showing only, and then you are in luck.
If this is going to help at all.

BTW, does Set Point act the same as Set Date ? I mean, if you have a form full of dates, will all change at once ? If yes, you could look for the solution (in VFP help) on any of the SysFormat functions it not, it is a special one (Set Point) and guessing continues.

I remember having a Grid full of points, and the Set Point to "," changed all to comma's within some millisecond. As if there were (are) hooks to the character. IOW, I hardly could imagine that the whole of the Grid was redrawn in order to show the new contences.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform