From: "Sascha Retzki" <sretzki@gmx.de>
To: 9fans@cse.psu.edu
Subject: [9fans] control(2), createmenu and event(2)-style menues
Date: Wed, 30 Aug 2006 22:20:35 +0200 [thread overview]
Message-ID: <d0797b765889bb6aa94de3573bd8faf4@mail.gmx.net> (raw)
Hi,
I want to write a GUI which displays audiodata - I would like the user to be able to select commands based on an 'event-style' rightclick-menue - basicly gview.c for foo.wav.
As some of those commands require selections which could be easily done via radio-buttons for example, I came to the conclusion that control(2) is the way to go.
Unfortunetly, I cannot make createmenu() work - and I cannot include event.h alongside control(2) :)
So, I'd like to start with this one:
Is createmenu() like the right-click menue presented by event.h? I did not yet find any code in the distribution which actually uses that, but maybe I am blind.
Here is a pseudo-like version of my test-code, maybe you can point me to the right direction:
Control *menue;
initdraw(0, 0, "DAE [main]");
initcontrols();
cs = newcontrolset(screen, nil, nil, nil);
menue = createmenu(cs,"daemenue");
chanprint(cs->ctl,"daemenue add bl0b");
activate(menue);
resizecontrolset(cs); // calls getwindow() with Refbackup
for(;;) {
read the channel
tokenize
print() the message because this is test-code
}
Anything obviously wrong?
With best regards, Sascha
next reply other threads:[~2006-08-30 20:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-30 20:20 Sascha Retzki [this message]
2006-08-30 22:56 ` Martin Neubauer
2006-09-01 5:25 ` Federico Benavento
2006-09-01 9:49 ` Sascha Retzki
2006-09-01 11:11 ` cej
2006-09-05 19:58 ` Sascha Retzki
2006-09-07 12:00 ` Russ Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d0797b765889bb6aa94de3573bd8faf4@mail.gmx.net \
--to=sretzki@gmx.de \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).