From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f922fe768e3a2103,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-02 03:33:25 PST Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!freenix!fr.clara.net!heighliner.fr.clara.net!newsfeed.germany.net!newsfeed2.easynews.net!easynews.net!news.cid.net!news.enyo.de!news1.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Modal dialogs with GtkAda Date: 02 Jan 2001 12:40:42 +0100 Organization: Enyo's not your organization Message-ID: <87ofxqqj0l.fsf@deneb.enyo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Xref: supernews.google.com comp.lang.ada:3548 Date: 2001-01-02T12:40:42+01:00 List-Id: How can I create modal dialogs with GtkAda? Okay, I can use Set_Modal, but this doesn't result in the convenient programming interface modal dialogs have with some other widget sets. More precisely, I want to do the following: declare Result : Dialog_Result; Name : Unbounded_String; Quantity : Long_Float; begin Query_User_With_Dialog (Result, Name, Quantity); case Result is when Ok => Add_To_Database (Name, Quantity); ... end case; end; Query_User_With_Dialog should not return while the dialog is visible on the screen. Is there are simple way to implement Query_User_With_Dialog? (Another question: Is there any documentation on memory management and GtkAda, e.g. do I have free components of a window, entries in a Clist, etc.?)