Thanks, Jarek

I tried moving that code plus of_Open() to my open event, but it still did
not work for me.  I feel so stupid <s>  I'll try comparing the PFC7 Quick
Start application to the PFC6 one later on today using PBDelta.

Regarding the funny order of the events - It is probably either your
connect to the database, your MessageBoxes, or some Yield()/of_wait() code
related to your splash window that is allowing the queued-up posted
pfc_postopen to execute out of its assumed turn.  Pfc_postopen gets posted
at the top of pfc_w_master's Open event.  So it is raring to go whenever it
gets a chance.

Here is a list of such things that may allow queued up events to execute
out of (assumed) turn:  MessageBox(), Opening a "response"/"modal" window,
Yield(), of_wait(), database connect, external DLL/API call, (or anything
that would cause a wait state).

Whenever debugging tricky things, remember that "You cannot observe
something without changing its reality" <bg>...  So, rather than using
MessageBoxes or Debug mode, try using the PFC Debug/Spy service, or the
6.0+ Profiling Tool.  In addition, you can try Title =+ 'x' tricks, or
PBDebug=on in your [PB] section of your PB.ini file.

Have fun,
~Sharon
--
Sharon Weinstrom Buntz      | mailto:[EMAIL PROTECTED]
Cheat Sheet for PFC/PB Help | http://www.pfccheatsheet.com/



Jarek Mosiejewski wrote:
> 
> 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]

Reply via email to