Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!decwrl!ucbvax!ips.ethz.ch!roth From: roth@ips.ethz.ch (Martin Roth) Newsgroups: comp.sys.sgi Subject: How to use dialog boxes ? Message-ID: <204:roth@ips.ethz.ch> Date: 28 Jun 90 09:30:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The Internet Lines: 29 Does anyone know, how I can use NeWS dialog boxes from a C programm in a simple way ? I just search for a routine with opens up a notifier window, displays a prompt ("Please enter a string:") and lets the user type a line of text. After RETURN (or an ACCEPT-Button), the routine should return and pass the string to my C program. A call like ask_text("Enter your Name:", string); shold create a window like +----------------------+ | Enter your Name: | | | | ___________________ | | | +----------------------+ and pass the input back in string. It doesn't matter how it looks, if it has an ACCEPT button or not, I just want a better way to read strings from the user than with scanf from the tty window. Thanks in advance. Martin Roth, Interdisciplinary Project Center Supercomputing, Graphics Laboratory, ETH Zurich, Switzerland roth @ ips.ethz.ch