Hi everybody
I have a situation like this:
My program start with a windows login. After user login main windwos show up. Ok until now.
Now I want to have this option for the user:
Disable the login window at start up and start up with main windows instead.
Is this possible to do and how can be do it ?
Is possible to have some example?
Thanks for the help
Alan
Click on App in Navigator to the left in the IDE.
Look in the Inspector under “Appearance” and change your “DefaultWindow” to the window you want to show on launch
http://developer.xojo.com/userguide/desktop-apps
Hi Albin
Thanks but did you read my post carefully?
You want it to be an option what window should be displayed when your app is opened?
Nop
My program(application) start with a windows login. After user login main windwos show up. Ok until now.
Now I want to have this option for the user:
Disable the login window at start up and start up with main windows instead.
Something like automatic login?
If not, I’m not following you, sorry
so, he means change the default windows at runtime.
You would need to save the user selection somewhere safe or the login is easily broken.
On startup (in App.Open) load the user selection and depending on what it is
If SkipLogin then
Dim w as new LoginWindow
w.show
Else
Dim w as new MainWindow
W.show
End if
Don’t forget to disable the default window for the app.
Hi Markus
You got the point , many thanks
Final question: how do you suggest to save and where the user selection?
many thanks