I open the splash window in the pfc_preOpen of the frame (the frame is
invisible). I show the frame at a later point. The only quirk with this
design is that the statusbar service will show up before the frame. In the
pfc_postOpen of the frame, I wrote :
if isValid(this.inv_statusbar) then
this.inv_statusBar.event pfc_hide()
end if
That shortened the display of the statusbar before the frame.
HTH,
Gordon Dickens
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, October 08, 1999 3:22 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: PFCSIG PFC_Splash vs. PFC_Logon
Marvin,
We also follow the logon and splash screen concept,
If possible would suggest that, your splash follows your logon, say user
wants to logon and has given password then and clicked ok then only the
splash screen comes into existance else not.
Find the attached code, it works fine in our application, may be it will
give you some hint
//// Initialize the various functionality of this service
of_SetTrRegistration(TRUE)
//of_SetError(TRUE)
/* connecting DataBase with Parameters */
/* Connect to REMOTE DB */
of_populate_connectionvalues(sqlca)
/* connect to database */
sqlca.of_connect()
If SQLCA.sqlcode <> 0 then
MessageBox ("Cannot Connect to Database", + &
"DBMS Message;" + &
String(SQLCA.SQLDBCode) + &
' ' + SQLCA.sqlerrtext, StopSign!)
Halt;
End If
This.of_SetSecurity(True)
itr_sec = Create n_tr
of_populateconnectionvalues(itr_sec)
//Connect Using itr_sec ;
itr_sec.of_connect()
/* Controlling the No.of user's into Data Base */
//This.SetTransPool(25,150,10)
/* Open Logon Screen*/
INTEGER li_log_retval,li_cnt
//li_log_retval = of_logondlg()
Do While li_cnt < 3
li_log_retval = of_logondlg()
If li_log_retval = 1 Then Exit
li_cnt += 1
Loop
This.inv_security.of_InitSecurity(itr_sec,"ritsmain",gnv_app.of_GetUserId(),
"Default")
IF li_log_retVal = 1 THEN
// Display the Splash window
of_SetLogo("Rits.bmp")
of_Splash(1)
// Open(w_selectmodule)
Open(w_ritsmain)
END IF
/* ------------------------End of Power
Scripts----------------------------------*/
> Remain Kooollll......,
> Mohamed Ashraf Memon
> Advanced Micro Devices (Singapore)
> TEL : 7969-888 X 39826
> FAX : 4492-360
> DID : 7969-826
> Email : [EMAIL PROTECTED]
>
>
>
> -----Original Message-----
> From: Sharon Buntz [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, October 08, 1999 2:04 AM
> To: Marvin Young
> Cc: [EMAIL PROTECTED]
> Subject: Re: PFCSIG PFC_Splash vs. PFC_Logon
>
> Marvin,
>
> From http://www.pfcguide.com/faq/faq_apmn.asp#logon_closing -
> "The logon window is closing by itself when the splash window is used."
>
> This problem occurs when the splash and the logon windows are opened from
> the same event. The workaround is to place them in different, posted,
> events (pfc_open, pfc_postopen) or adding a Yield() between the logon and
> the splash windows.
>
> Let us know if that's not it, so we can make other suggestions.
>
> Another related thing that we did was to put code in the Logon window's
> OK/CANCEL buttons - so the user may "key ahead" and type in their password
> and press enter without waiting (or so the user may "key ahead" and type
> "Esc" to escape from the app if they changed their mind).
>
> // Wait until the splash window has expired, and make sure it closes
> if IsValid(w_splash) then
> n_cst_datetime lnv_datetime
> lnv_datetime.of_Wait (w_splash.inv_splashattrib.ii_secondsvisible)
> close(w_splash)
> end if
> parent.SetRedraw(TRUE)
> Super::EVENT Clicked( )
>
> Have fun,
> ~Sharon
> --
> Sharon Weinstrom Buntz | mailto:[EMAIL PROTECTED]
> Cheat Sheet for PFC/PB Help | http://www.pfccheatsheet.com/
>
>
>
> Marvin Young wrote:
> >
> > This is a minor annoyance that I can't bring myself to track down
> completely. If anyone else has come up with a solution, I'd appreciate a
> tip.
> >
> > I've been trying to use both the splash window and a login window during
> startup. I don't open my main window until after the splash and logon are
> finished. Unfortunately, when the splash window times out, both the
> splash and the login windows close. If the user isn't paying close
> attention, they never get a chance to log in!
> >
> > Does anyone know why this happens? Does the logon window consider the
> splash as it's "parent?" Is there a way to prevent this?
> >
> > Thanks for any light you can shed,
> >
> > Marvin Young
> > Washington State Department of Fish and Wildlife
> > [EMAIL PROTECTED]
> > (360) 902-2508
> > [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]
> [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]
> [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]