Path: utzoo!censor!geac!jtsv16!uunet!tut.cis.ohio-state.edu!purdue!bu-cs!bloom-beacon!SUPER.ORG!dsseewe From: dsseewe@SUPER.ORG (Daniel Seewer) Newsgroups: comp.windows.x Subject: A MAC dialog implementation Message-ID: <8908031514.AA05636@metropolis.super.org> Date: 3 Aug 89 15:14:05 GMT Organization: The Internet Lines: 22 Well I have a question that may have no solution! I am trying to imitate the Mac look-and-feel for a dialog box. When the box pops up I want the users input focused to the text widget of the dialog widget. This seems simple by using the XtSetKeyboardFocus() call. But this call needs two widgets the parent and the child to focus input to. Well how do I obtain the text widget of the dialog widget without dipping into the Private stuff???? Or do I have to create my own dialog box consisting of a label widget and asciiString widget so I can have direct access to the desired widget to focus on. Another nice featrue that I would like to implement is when the return key is pressed it will invoke the "confirm" button attached to the dialog widget. I seem to remember some chatter a while back discussing this issue stating that one could not do from inside the program but could through the resource database. Does anyone remember this conversation?? Is the translation table the way to go for this idea? That is when return is pressed I will call a routine that will then invoke the callback associated with the "confirm" button. Thanks in advance!!!!!!! Dan Seewer (dsseewe@super.org)