Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thisform.Refresh vs This.Refresh (Container)
Message
From
31/10/2005 13:21:45
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01063678
Message ID:
01063724
Views:
21
>>>>Two options
>>>>
>>>>(1)
>>>>
>>>>put =m.this.Refresh() in each page's activate
>>>>
>>>>
>>>>(2) On one control of each page
>>>>
>>>>
>>>>&& UIEnable event
>>>>lparameters lEnable
>>>>
>>>>do case
>>>>case m.lEnable
>>>>  = m.this.Parent.Refresh()
>>>>endcase
>>>>
>>>
>>>Hi Gregory,
>>>
>>>Thank you for your quick response.
>>>
>>>Why the container.refresh() does not work as it should?
>>>
>>>In other words, the sequence is this:
>>>
>>>Page.Activate has container.Activate
>>> the container activate method has this.refresh()
>>>
>>>If we change this.refresh() to thisform.refresh(), it works. I don't understand, why this.refresh() does not refresh container's objects as it should.
>>>
>>>We don't want to use UIEnable method, because it is causing too much refresh. We even overwrote the framework's addUIEnabler method, so we can control refresh ourselves.
>>>
>>>So, there is a difference between using thisform.refresh() and this.refresh(). Could you please explain, why there is a difference here?
>>>
>>>Thanks a lot again.
>>>
>>><g>
>>
>>As far as I know, the container's refresh) should work.
>>
>>Can you put the following code in the container's refresh(), to verify
>>
>>acti screen
>>? 'Container Refresh', m.this.name,  m.this.Parent.Name
>>
>>return DoDefault()
>>
>
>It is firing, but not refreshing controls.

William,

I have no explanation. You may want to trace ths container's refresh to verify that all controls' refresh() is fired. You wouldn't have specific code in the container and/or its parent class that has a NODEFAULT somewhere, would you ?
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform