X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: ahmadfirdaus85 AT gmail DOT com Newsgroups: comp.os.msdos.djgpp Subject: Problem with GUI Date: Fri, 8 Aug 2008 01:59:57 -0700 (PDT) Organization: http://groups.google.com Lines: 11 Message-ID: NNTP-Posting-Host: 210.118.108.254 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1218185997 22050 127.0.0.1 (8 Aug 2008 08:59:57 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Fri, 8 Aug 2008 08:59:57 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: p10g2000prf.googlegroups.com; posting-host=210.118.108.254; posting-account=Qkq8kgoAAAAJjBsW8GT9-mL0gsYmy-OC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16,gzip(gfe),gzip(gfe) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi,i am new to allegro. I am facing two problems 1.I have created a GUI, the problem is that whenever i press the escape key,then the the exe terminates and i again come back to dos mode.Is there anyway by which before terminating the gui the system(i.e either escape does not uit the application or atleast asks the user) can ask the user whether he wants to quit or not?? 2.I have used the Dialogue structure to create the GUI.The problem is that i am unable to directly focus on a single object as soon as the GUI is displayed....i mean i have to press say( ctrl-m) in order to focus on the first object. Is there any way by which i can directly focus on one of the object??