Hi everyone!
When I open a already opened view, I want to send Close_panel to it before I send the activiation message.
I've found a way of doing this:
My view is deferred:
Code:
DEFERRED_VIEW Activate_oMyView FOR ;
;
Object oMyViewis a dbView
....
Cd_End_Object
In my Client_Area I add this procedure:
Code:
Procedure Activate_oMyView
Register_Object oMyView
If ((Object_Id(oMyView)) > 0) Send Close_Panel to oMyView
Forward Send Activate_oMyView
End_Procedure
It gives me the wanted behavior. But I don't want to do this for every view, since there are hundreds of views in the application. Does anyone know a better way of doing this? Or a way to make it more general, so that I don't have to override every Activate_ message?
Regards,
Fredrik