Has anyone been able to display the login form as a subwindow (non modal), to have a little dialog in a window rather than 2 fields in the middle of nowhere which are never centered.
Of course I could resize the main window upon login form load, but it is less smart than having a dialog window.
I have been able to simulate it by not using the login form feature and replacing it with my own stuff, but it is a lot more complex.
maybe that should end up in a wish list?
hmm, not sure but I think this is a wish-list-thing
I think your login form could just have an onShow method that opens another form. That should work. Of course you need to code a bit tom make sure that users can’t just close that windo and go ahead…
Patricks suggestion should indeed be doable I guess…
Try the following:
application.showFormInDialog( forms.userLogin, -1, -1, -1, -1, User Log In’, false, false, ‘dlg_Login’, true );
The last boolean sets/re-sets the modal/non-modal mode.
I hope this helps.
the formindialog is what I had before. the login script was too complex, especially to make sure nobody would escape by closing the window. and login = true switches to 1st form but does not close the dialog.
Using a dummy form to load a formindialog upon load is wasting 1 form… so not the best.
So far, I am now shrinking the whole window (with no toolbar and menu) in the middle of the screen at login, then expands right after login = true.
To make sure servoy starts with a small window, I also shrink the window before quitting in my logout method.
Less hairy to maintain, I always hate methods I write and don’t understand what they do 3 months later.
especially to make sure nobody would escape by closing the window
But you can prevent that!
See tips on the forum or Servoy Magazine for that…
that might be the problem, servoy is full of tricks to be found on the forum, etc… and from a commercial product, I’d rather expect a comprehensive documentation.
if this works like web tools, I can go back to php and js. The speed at which I can build a solutions is a key criteria for me, and I don’t want to spend 2/3 of my time to look for info around. this is acceptable for free tools only.
anyway, it will do the job for the moment, I’ll improve that when the “kernel” of my solution will be ready.
thanks Marcel