What's the best way to create a custom requester?

4 posts / 0 new
Last post
Hans
Hans's picture
Offline
Last seen: 3 months 3 weeks ago
Joined: 2010-12-09 22:04
What's the best way to create a custom requester?

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.

Hans

broadblues
broadblues's picture
Offline
Last seen: 4 years 9 months ago
Joined: 2012-05-02 21:48
Re: What's the best way to create a custom requester?

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).

xenic
xenic's picture
Offline
Last seen: 2 years 6 months ago
Joined: 2011-05-07 04:52
Re: What's the best way to create a custom requester?

@Hans
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

Hans
Hans's picture
Offline
Last seen: 3 months 3 weeks ago
Joined: 2010-12-09 22:04
Re: What's the best way to create a custom requester?

Thanks guys.

Join the Kea Campus - upgrade your skills; support my work; enjoy the Amiga corner.
https://keasigmadelta.com/ - see more of my work

Log in or register to post comments