Here is the the frame's open event code with the statusbar service that
works for me. Comparing with the PB6.5 code, I've done two things:
- moved it form the pfc_postopen to open event,
- added call to of_Open function
If IsValid (gnv_app.inv_debug) Then
gnv_app.inv_debug.inv_sqlspy.Post of_OpenSQLSpy (True)
End If
If SQLCA.of_IsConnected () Then
gnv_app.Dynamic of_SetFrame (This)
If gnv_app.of_LogonDlg () <> Success Then
.
.
.
End If
End If
This.of_SetStatusBar (True)
This.inv_statusbar.of_SetMem (True)
This.inv_statusbar.of_Open (True)
It appears to me that it is necessary to have the inv_statusbar.of_Open call
as without it the service does not work (at least in my application).
Please note that call to inv_statusbar.of_Open is precoded in the
pfc_postopen event in the pfc layer.
I've mede a very simple test by placing messagebox statements on the top of
the following frame's events pfc_preopen, open and pfc_postopen. They got
executed in the following order:
- pfc_preopen,
- pfc_postopen
- open
I think this provides a clue why call to of_Open is necesery.
Regards
Jarek
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]