Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site cbmvax.cbmvax.cbm.UUCP Path: utzoo!watmath!clyde!cbosgd!ukma!psuvm.bitnet!psuvax1!burdvax!bpa!cbmvax!higgin From: higgin@cbmvax.UUCP Newsgroups: net.micro.amiga Subject: Re: Requesting a filename Message-ID: <396@cbmvax.cbmvax.cbm.UUCP> Date: Thu, 12-Jun-86 14:23:01 EDT Article-I.D.: cbmvax.396 Posted: Thu Jun 12 14:23:01 1986 Date-Received: Tue, 17-Jun-86 05:41:14 EDT References: <419@batcomputer.TN.CORNELL.EDU> Reply-To: higgin@cbmvax.UUCP (Paul Higginbottom) Organization: Commodore Technology, West Chester, PA Lines: 34 Keywords: Requesters, Filenames In article <419@batcomputer.TN.CORNELL.EDU> hsgj@batcomputer.TN.CORNELL.EDU (Dan Green) writes: >I would like to have the user enter a filename from my C program. >I have been looking at Requesters, but it appears that they are >only used for yes/no input. I too found the documentation a little unclear about this when I first read it, but you have misunderstood whatever they were TRYING to say. The AutoRequest() function does indeed allow easy yes/no or ok/cancel type of Boolean requesters, but application-defined ones can have any gadgets and images, etc they like on them. So for a filename, you would probably put a string gadget on it, and maybe display the directory in the requester's rastport (easy, but icky) or via one huge gadget, or many filename sized gadgets (hard). >So the only way I can think of requesting a filename is to >generate a window that is one text line high, and attach a console >to it in raw mode. Then I would just watch the input of the usre, >and when I see a CarriageReturn then I would have the filename, and >could close the window. This seems like a lot of work, especially >since I would probably have to do my own backspace and ^X processing. It might be a lot of work, but believe it or not, it's far more flexible for the program, although I know this comment dismays C-A who are trying to get developers to use requesters. I personally find requesters amazingly time consuming to develop (all those damned structures) and the fact that they block input to the window, the string gadgets aren't active --to mention a few gripes-- are why I dislike requesters. But HEY, these things ARE fixed in 1.2 if you want to develop under that. Hope this helps, Paul Higginbottom Disclaimer: I do not work for Commodore and my opinions are at least my own.