From: Stephen Merrony <merrony@gmail.com>
Subject: Re: How to associate a simple menu with a window in GtkAda
Date: Sun, 1 May 2022 23:15:21 -0700 (PDT) [thread overview]
Message-ID: <bd980301-d04b-4e72-8539-132542ea53ebn@googlegroups.com> (raw)
In-Reply-To: <ddb821c0-bc64-4405-8add-e17ff4e56d65n@googlegroups.com>
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 window. The problem that I'm encountering is that I'm not clear on how to make that association and have had a hard time trying to find this specific example. This is the code that I have so far:
>
> https://codeshare.io/loqWOm
I agree that it's hard to find readable examples. I have a an Ada GUI program 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 the menu and associates its items to their procedures.
Hope that helps a little.
prev parent reply other threads:[~2022-05-02 6:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-01 5:37 How to associate a simple menu with a window in GtkAda andrew...@gmail.com
2022-05-01 8:58 ` Dmitry A. Kazakov
2022-05-22 4:00 ` andrew...@gmail.com
2022-05-22 6:29 ` Dmitry A. Kazakov
2022-05-02 6:15 ` Stephen Merrony [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox