Wei - you got it!
In fact I can put it in the FormShow event, (after FormCreate)
which means that it can be AFTER I set up user-specific  parameters,
which means that it can be switched on or off with normal conditionals -
rather than compiler conditionals!
Great!  Thanks very much.

Thanks to JED as well - that would have been my next try.

Mark
----- Original Message -----
From: "Cheng Wei" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Tuesday, September 11, 2001 3:42 PM
Subject: RE: [DUG]: Where to enable Login Component


> Try this Mark -
>
> procedure TForm1.FormCreate(Sender: TObject);
> begin
>   RxLoginDialog1.Active := True;
>   if not RxLoginDialog1.Login then begin
>     Application.Terminate;
>     Exit;
>   end;
>
>   file://proceed with execution
>
> end;
>
> > Further to this:
> > I have tried putting the
> > RxLoginDialog1.Active := True; (with this set to False at design time)
> > in the FormCreate, FormShow and FormActivate events
> > all to no avail.
> >
> > Mark
>
>
############################################################################
#########
> This e-mail message has been scanned for Viruses and Content and cleared
> by MailMarshal
> For more information please visit www.marshalsoftware.com
>
############################################################################
#########
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to