From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a37:e102:0:b0:69f:8463:cbdd with SMTP id c2-20020a37e102000000b0069f8463cbddmr7403712qkm.766.1651472122453; Sun, 01 May 2022 23:15:22 -0700 (PDT) X-Received: by 2002:a25:25cd:0:b0:648:5bce:5a45 with SMTP id l196-20020a2525cd000000b006485bce5a45mr9667747ybl.349.1651472122091; Sun, 01 May 2022 23:15:22 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 1 May 2022 23:15:21 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=193.57.124.73; posting-account=0AVFrAoAAADewHEjvypnHTppA168liIf NNTP-Posting-Host: 193.57.124.73 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: How to associate a simple menu with a window in GtkAda From: Stephen Merrony Injection-Date: Mon, 02 May 2022 06:15:22 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:63796 List-Id: On Sunday, 1 May 2022 at 07:37:59 UTC+2, andrew...@gmail.com wrote: > I'm trying to create a small menu that will show up at the top of a windo= w. The problem that I'm encountering is that I'm not clear on how to make t= hat association and have had a hard time trying to find this specific examp= le. This is the code that I have so far:=20 >=20 > https://codeshare.io/loqWOm I agree that it's hard to find readable examples. I have a an Ada GUI prog= ram on Github using GtkAda: https://github.com/SMerrony/dashera I'm not holding up as great code, but take a look at Src/gui.adb - starting= maybe woth the Create_Window procedure, then Create_Menu_Bar which adds th= e menu and associates its items to their procedures.=20 Hope that helps a little.