Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thisform.Refresh vs This.Refresh (Container)
Message
 
 
To
31/10/2005 12:57:14
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:
01063721
Views:
18
>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform