I need to create a simple login requester (username & password). What's the best way to create that?
I originally assumed that I should use the requester.class, but that seems to be for predefined requesters only. There's no provision for adding custom GUI elements. Unless I've missed something...
So, are we supposed to use a struct Requester to build a custom one? Or use the window.class?
EDIT: I could be lazy and have separate requesters for the username and password, but that would create an extra step for the user. I'd rather have it all on one page.
Use window.class, it will just be simple GUI window same as anay other. You will have to manualy make the main app windows busy if needed but that is trivial. (set WA_BusyPointer).
Check out TimedDosRequester in SDK:Documentation/AutoDocs/dos.doc.
It can be called from a task so your program can continue working while the requester waits for user input and you can include a timeout for the requester.
X1000 - OS 4.1FE
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. Home of the RadeonHD driver for Amiga OS 4.x project.
http://keasigmadelta.co.nz/ - more of my software.