General information
Category:
Forms & Form designer
>>My app starts with SCREEN=OFF in Config.fpw and a splash screen as a top-level form. The login form is called as an in-top-level form before I set _Screen.Visible = .t., but is not receiving focus until I click on it. I'd like users to be able to type as soon as they see the form. Any ideas? Thanks.
>
>Hi Joel,
>
>We do this. In the .Init of the top-level form, it sets focus to a textbox that is way off the form. The "main" program which is run at startup, instatiates the top-level form and then calls up the login form. The main program checks for a successful login, if not, out, if good, the main menu on the top-level form is displayed. We don't have any problems with this approach.
>
>Let me know if you need more.
>
>Steve
Hmmm... that didn't work for me, but my scenario is a little different. My top-level form is just a splash screen, and it has a progress bar. I'm sure that changes things a little bit. Anyway, I've implemented a workaround where I move the main application window off of the desktop at coordinates -2000, -2000 and set _Screen.Visible = .t. This causes the login form to receive focus. It's kinda clunky (which is why I wanted to find another way), but it works.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only