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=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f922fe768e3a2103 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-02 05:50:07 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Emmanuel Briot Newsgroups: comp.lang.ada Subject: Re: Modal dialogs with GtkAda Date: Tue, 02 Jan 2001 13:41:35 GMT Organization: Deja.com Message-ID: <92slqe$r7h$1@nnrp1.deja.com> References: <87ofxqqj0l.fsf@deneb.enyo.de> NNTP-Posting-Host: 213.228.58.163 X-Article-Creation-Date: Tue Jan 02 13:41:35 2001 GMT X-Http-User-Agent: Mozilla/4.61 [en] (X11; I; HP-UX B.11.00 9000/782; Nav) X-Http-Proxy: 1.0 x67.deja.com:80 (Squid/1.1.22) for client 213.228.58.163 X-MyDeja-Info: XMYDJUIDbriot_emmanuel_franc Xref: supernews.google.com comp.lang.ada:3554 Date: 2001-01-02T13:41:35+00: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: > [...] > 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? We have implemented exactly that kind of dialog in the package Gtkada.Dialogs and Gtkada.File_Selection. These packages provides two functions that do not return until the user closes the dialog (either by clicking on the buttons or simply by closing the window). If you can use these in your application, do it directly. If these dialogs are not quite what you want, look at the source and do the same thing for your dialog. This is one of the strong aspects of free-software :-) > (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.?) Read the secret documentation: the GtkAda user's guide as a full paragraph on that. The short asnwer is: No, you don't need to free the memory yourself, this is all taken care of. regards, Emmanuel ACT-Europe Sent via Deja.com http://www.deja.com/