Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh not refreshing
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00510014
Message ID:
00510336
Views:
17
no go for the _vfp.autoyield, same prob

one form has over 100 objects so I will not use that one as the "control", the other is more on the basic side, I will do as you suggested

also when my form is messed up, if I add a command button with the only line in the click event is "thisform.refresh" it does nothing

it will take time to "trial and error" test the form I will let you guys know whats up

but I will put money that it is connected to the navigation buttons class


>Hi!
>
>If you use ActiveX controls, try also to play around the _VFP.AutoYield property and SYS(2333) function. If they still do nto help, than start to determine which part of the form causes problem:
>
>- remove part of the form (ActiveX control, some VFP control, some code etc.) and see if problem went away. If not, continue this setep until you find the part, after which when you remove it the problem disappears.
>- Start to tune that offending part. Much similar way - split it to the parts and see where is the problem.
>- continue doing the same until you find the code line, object, control etc. that is a source of the weirdness. Than, when you know the exact thing/place, it will be much asy to fix it.
>
>Sometime complete re-building of the form can help too, however, the form is complex, so I do not risk you to recommend this way without being sure it will help.
>
>HTH.
>
>>_screen.lockscreen = .t.
>>is issued in the begining and
>>_screen.lockscreen = .f.
>>is issued as the last line of code in the refresh
>>
>>also I did take out the
>>_screen.lockscreen = .t.
>>just to see and the error still happened
>>
>>
>>
>>>Hi!
>>>
>>>Check out the LockScreen property. It seems it is set to .T. than to .F. somewhere. Similar problem might come also from the LockWindowUpdates() API function call.
>>>Finally, if you occasionally used NODEFAULT in the REFRESH event of the form or some control......
>>>
>>>HTH.
>>>
>>>>Hello everybody
>>>>
>>>>Has anyone every issued a "thisform.refresh" and not had it work???
>>>>
>>>>Basically I have a form when "add" mode is started I enable and disable textboxes and command buttons, but sometimes the form doesn't refresh (some visible stuff isn't show), if I minimize and restore the form looks fine I tried to add a command button with "thisform.refresh" in the click event. but it doesn't fix the form.
>>>>
>>>>it's like a "re-draw issue"
>>>>
>>>>also if the form doesn't refresh right and I activate a separate (any) program and drag the new program window over the messed-up form then move it away everything comes out looking fine???
>>>>
>>>>any ideas??
>>>>
>>>>Thanks
Stephen McLaughlin
"Sexy Steve Valenteno", "Blastmaster"
stephenmclaughlin@gmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform