VDF-GUIdance logo



  Visual DataFlex Logo
  

Shared knowledge leads to accumulated knowledge

        Printer Friendly Page


Retrieve lost objects

by Wil van Antwerpen

Summary

A tabpage in VDF sometimes looses one or more of its objects. This usually happens after a user clears the entire view. This document describes how to redisplay those lost objects.
No Files Available
Date Created: 20/09/1999
Date Updated: 03/11/2001
Author: Wil van Antwerpen
Company: Antwise Solutions


Retrieve lost objects

by Wil van Antwerpen
Every now and then you will find that tabdialogs and tabpages have lost some of their objects or controls. You know that they are still there, but they somehow seem to be missing from the tab, usually after sending a request_clear.

A workaround for this problem is to manually set the property visible_state:
"Set Visible_State Of hoInvisible To True"

Where 'hoInvisible' should be replaced with the objects name

You can do this by simply augmenting the activate procedure of the tabdialog or by setting it from another location if you want, as long as it's set when the tab is activated.

Example

Procedure Activate Returns Integer
Local Integer bActivate
Forward Get MSG_Activate To bActivate
Set Visible_State Of (oCustomer(Self)) To True
Procedure_Return bActivate
End_Procedure Activate
If this does not work for you, another suggestion would be to try paging the object when the view activates.

as in:
"Send Page_Object To hoInvisible TRUE"