Morning all,
        I've got an app I'm working on which starts up with it's main form
down on the tray.  When the Tray Icon is double-clicked, the form is
restored to the screen and a TFrame is created on it which provides
functionality and connection to other forms.  When it is minimized back to
the Tray, the TFrame is free'd releasing all resources except as needed to
display the Tray Icon until the app is needed again.
        The very first time the user double-clicks the Tray Icon a Password
dialog is shown on screen for the user to enter a name and password, and if
correct the main form and TFrame are shown and created normally, if not, the
app is closed.  This is necessary because the TFrame provides a connection
to an enctypted database.  And as the application is designed to startup
with Windows to the Tray, I don't show the password until it is requied so
that the user isn't bothered with it right after logging on to Windows.
        The biggest problem I'm having is that I cannot get focus to the
password dialog when it appears so that the user can simply begin entering
the necessary information.  The edit control to be filled out has a blinking
cursor in it, but unless the user first clicks on the dialog somewhere it
will not take his entered characters!  I've tried setting the active
controls, the focus, and even send the dialog an OnClick event, but nothing
seems to work!  I believe it might be because the Taskbar continues to have
focus until an actual physical click is made on the dialog.  If anyone has a
solution or an idea, I'd greatly appreciate hearing from you.
        Secondary to that problem is that I cannot seem to get rid of the
TaskBar button provided for the application.  And I think it's redundant and
annoying to have both a Taskbar button and a Tray Icon!  Setting it not to
show in the dpr doesn't change anything.  Any ideas?     

from Robert Meek dba "Tangentals Design"
e-mail: [EMAIL PROTECTED]
Freelance Windows Programming for XP and Vista 
Also proud to be a Moderator of the "Delphi-List" at elists.org

"Reality cannot be explained...only enjoyed or endured as your current
perspective allows!"


_______________________________________________
Delphi mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to