Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

An economist is a man who would marry Farrah Fawcett-Majors for her money.


devel / comp.lang.ada / Re: How to associate a simple menu with a window in GtkAda

SubjectAuthor
* How to associate a simple menu with a window in GtkAdaandrew...@gmail.com
+* Re: How to associate a simple menu with a window in GtkAdaDmitry A. Kazakov
|`* Re: How to associate a simple menu with a window in GtkAdaandrew...@gmail.com
| `- Re: How to associate a simple menu with a window in GtkAdaDmitry A. Kazakov
`- Re: How to associate a simple menu with a window in GtkAdaStephen Merrony

1
How to associate a simple menu with a window in GtkAda

<ddb821c0-bc64-4405-8add-e17ff4e56d65n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=6878&group=comp.lang.ada#6878

 copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:6214:2aab:b0:446:4053:7a2b with SMTP id js11-20020a0562142aab00b0044640537a2bmr5077785qvb.127.1651383478674;
Sat, 30 Apr 2022 22:37:58 -0700 (PDT)
X-Received: by 2002:a81:494c:0:b0:2ef:546f:127e with SMTP id
w73-20020a81494c000000b002ef546f127emr6523713ywa.335.1651383478468; Sat, 30
Apr 2022 22:37:58 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!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: Sat, 30 Apr 2022 22:37:58 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2601:18f:900:7300:80fe:d710:7d61:b32d;
posting-account=3pYsyQoAAACcI-ym7XtMOI2PDU8gRZS5
NNTP-Posting-Host: 2601:18f:900:7300:80fe:d710:7d61:b32d
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ddb821c0-bc64-4405-8add-e17ff4e56d65n@googlegroups.com>
Subject: How to associate a simple menu with a window in GtkAda
From: andrew.s...@gmail.com (andrew...@gmail.com)
Injection-Date: Sun, 01 May 2022 05:37:58 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 5
 by: andrew...@gmail.com - Sun, 1 May 2022 05:37 UTC

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

Re: How to associate a simple menu with a window in GtkAda

<t4li46$cbh$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=6880&group=comp.lang.ada#6880

 copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!CndO09ueOTz9v5APEGJmiw.user.46.165.242.91.POSTED!not-for-mail
From: mail...@dmitry-kazakov.de (Dmitry A. Kazakov)
Newsgroups: comp.lang.ada
Subject: Re: How to associate a simple menu with a window in GtkAda
Date: Sun, 1 May 2022 10:58:45 +0200
Organization: Aioe.org NNTP Server
Message-ID: <t4li46$cbh$1@gioia.aioe.org>
References: <ddb821c0-bc64-4405-8add-e17ff4e56d65n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="12657"; posting-host="CndO09ueOTz9v5APEGJmiw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Dmitry A. Kazakov - Sun, 1 May 2022 08:58 UTC

On 2022-05-01 07:37, 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

1. Always post complete code.

2. Never call Initialize on objects created Gtk_New or equivalent.

3. GtkAda examples contains a sample code for menus.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

Re: How to associate a simple menu with a window in GtkAda

<bd980301-d04b-4e72-8539-132542ea53ebn@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=6881&group=comp.lang.ada#6881

 copy link   Newsgroups: comp.lang.ada
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: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!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: <ddb821c0-bc64-4405-8add-e17ff4e56d65n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=193.57.124.73; posting-account=0AVFrAoAAADewHEjvypnHTppA168liIf
NNTP-Posting-Host: 193.57.124.73
References: <ddb821c0-bc64-4405-8add-e17ff4e56d65n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bd980301-d04b-4e72-8539-132542ea53ebn@googlegroups.com>
Subject: Re: How to associate a simple menu with a window in GtkAda
From: merr...@gmail.com (Stephen Merrony)
Injection-Date: Mon, 02 May 2022 06:15:22 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 15
 by: Stephen Merrony - Mon, 2 May 2022 06:15 UTC

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.

Re: How to associate a simple menu with a window in GtkAda

<738d9401-84e6-4615-8640-e48298a6ae9cn@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=6941&group=comp.lang.ada#6941

 copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:ac8:7fd0:0:b0:2f3:fda4:6ddf with SMTP id b16-20020ac87fd0000000b002f3fda46ddfmr12458278qtk.323.1653192045460;
Sat, 21 May 2022 21:00:45 -0700 (PDT)
X-Received: by 2002:a25:6c4:0:b0:64f:af7f:8599 with SMTP id
187-20020a2506c4000000b0064faf7f8599mr2274346ybg.275.1653192045262; Sat, 21
May 2022 21:00:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sat, 21 May 2022 21:00:44 -0700 (PDT)
In-Reply-To: <t4li46$cbh$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:18f:900:7300:ec07:4fd:41ba:94ea;
posting-account=3pYsyQoAAACcI-ym7XtMOI2PDU8gRZS5
NNTP-Posting-Host: 2601:18f:900:7300:ec07:4fd:41ba:94ea
References: <ddb821c0-bc64-4405-8add-e17ff4e56d65n@googlegroups.com> <t4li46$cbh$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <738d9401-84e6-4615-8640-e48298a6ae9cn@googlegroups.com>
Subject: Re: How to associate a simple menu with a window in GtkAda
From: andrew.s...@gmail.com (andrew...@gmail.com)
Injection-Date: Sun, 22 May 2022 04:00:45 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1986
 by: andrew...@gmail.com - Sun, 22 May 2022 04:00 UTC

About point #2, why not?

On Sunday, May 1, 2022 at 4:58:52 AM UTC-4, Dmitry A. Kazakov wrote:
> On 2022-05-01 07:37, @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
> 1. Always post complete code.
>
> 2. Never call Initialize on objects created Gtk_New or equivalent.
>
> 3. GtkAda examples contains a sample code for menus.
>
> --
> Regards,
> Dmitry A. Kazakov
> http://www.dmitry-kazakov.de

Re: How to associate a simple menu with a window in GtkAda

<t6cl84$110q$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=6942&group=comp.lang.ada#6942

 copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!sk0Beg7Zrzno4hcHZ70Y5A.user.46.165.242.91.POSTED!not-for-mail
From: mail...@dmitry-kazakov.de (Dmitry A. Kazakov)
Newsgroups: comp.lang.ada
Subject: Re: How to associate a simple menu with a window in GtkAda
Date: Sun, 22 May 2022 08:29:24 +0200
Organization: Aioe.org NNTP Server
Message-ID: <t6cl84$110q$1@gioia.aioe.org>
References: <ddb821c0-bc64-4405-8add-e17ff4e56d65n@googlegroups.com>
<t4li46$cbh$1@gioia.aioe.org>
<738d9401-84e6-4615-8640-e48298a6ae9cn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="33818"; posting-host="sk0Beg7Zrzno4hcHZ70Y5A.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Dmitry A. Kazakov - Sun, 22 May 2022 06:29 UTC

On 2022-05-22 06:00, andrew...@gmail.com wrote:
> About point #2, why not?
>
> On Sunday, May 1, 2022 at 4:58:52 AM UTC-4, Dmitry A. Kazakov wrote:
>> On 2022-05-01 07:37, @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
>> 1. Always post complete code.
>>
>> 2. Never call Initialize on objects created Gtk_New or equivalent.

Because Gtk_New calls to Initialize internally. Basically

Gtk_New = allocator new + Initialize

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor