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,2746dae4f161c04e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-21 03:53:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!213.204.128.162!news000.worldonline.se!newsfeed01.nntp.se.dataphone.net!nntp.se.dataphone.net!news.powertech.no!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Gtkada-Prob Date: Wed, 21 Nov 2001 11:53:05 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <20011121.053507.496987743.3460@web.de> <20011121.113942.76065818.1437@web.de> <20011121.115713.706043324.1437@web.de> NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1006343585 3823 129.241.83.82 (21 Nov 2001 11:53:05 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 21 Nov 2001 11:53:05 +0000 (UTC) User-Agent: slrn/0.9.7.2 (Linux) Xref: archiver1.google.com comp.lang.ada:16786 Date: 2001-11-21T11:53:05+00:00 List-Id: On Wed, 21 Nov 2001 11:57:13 +0100, Lars Heppler wrote: > Hi! >> Can you show a bit more how you tried this? > yep, > -- this is in the window_pkg made with glade > Gtk_New (Window1.Checkbutton2, -"Disable Extra-Paranoia"); > Set_Active (Window1.Checkbutton2, True); > Pack_Start (Window1.Vbox1, Window1.Checkbutton2, False, False, 5); > > Gtk_New (Window1.Radiobutton1, Vbox1_Group, -"WAV"); > Vbox1_Group := Group (Window1.Radiobutton1); > Set_Active (Window1.Radiobutton1, True); > Pack_Start (Window1.Vbox1, Window1.Radiobutton1, False, False, 5); > > -- this is how i want to check it and want to do... > > if Get_Active (Window1.Checkbutton1) = True then > rip_args(1) := new String'("-Z"); > elsif > Get_Active (Window1.Checkbutton2) = True then > rip_args(2) := new String'("-Y"); > elsif > Get_Active (Window1.Radiobutton1) = True then > rip_args(4) := new String'("-w"); > > I hope this is enough... Assuming that you put the above test in the callback of a OK/Apply button and this callback is in a child package of windows_pkg I cannot see that it shouldn't work. However if you put it in a different package I suggest you make a procedure in window_pkg like this: procedure Get_Arguments is begin if Get_Active (Window1.Checkbutton1) = True then rip_args(1) := new String'("-Z"); elsif Get_Active (Window1.Checkbutton2) = True then rip_args(2) := new String'("-Y"); elsif Get_Active (Window1.Radiobutton1) = True then rip_args(4) := new String'("-w"); end Get_Arguments; and just call this when you need the arguments. Preben -- () Join the worldwide campaign to protect fundamental human rights. '||} {||' http://www.amnesty.org/