[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Best way to create a virtual keyboard
- From: Nick Busigin <nick xwing org>
- To: gtk-app-devel-list redhat com
- Subject: Re: Best way to create a virtual keyboard
- Date: Tue, 19 Oct 1999 07:25:40 -0400 (EDT)
On Tue, 19 Oct 1999, Erik Mouw wrote:
> On Mon, 18 Oct 1999 20:14:15 -0400 (EDT), Nick Busigin wrote:
> > I'm new to GTK+ and I'm looking for some advice on the best way to create
> > a virtual keyboard similar to the one I've attached a JPEG image for. I
> > need to be able to receive mouse button pressed and mouse button released
> > events for each individual piano key. ie. Each piano key needs to be
> > treated as if it were a button. Also, I want to change the color of each
> > key whenever the user "presses" it with his mouse. Would using GDK
> > drawing functions in the drawing area widget be the best way to go for
> > this application?
>
> IIRC, Eric Harlow's book has examples for this. There is a link from the
> GTK homepage (www.gtk.org) to the example code.
Hi Erik,
I have Eric Harlow's book. I've browsed through it and have read through
some sections in detail. There appears to be more than one way to do it:
one way would be to use pixmaps that I would create using gimp and the
other would be to use the GDK drawing primitives within the drawing area
widget. I was hoping that someone more experienced than I could suggest
which of these two approaches would be the best one to take - or perhaps
there is another technique that would better still.
> PS: I have some MIDI stuff available in case you need it.
Thanks for the offer. I've been playing around with the MIDI portion of
my project and have some code that works for what I want to do... however,
I'm a novice in that area too, so if you have some MIDI code I could take
a look at and learn from, I'd be very interested in seeing it.
Thanks!
Nick
--------------------------------------------------------------------------
Nick Busigin ...Sent from my Debian/GNU Linux Machine... nick@xwing.org
To obtain my pgp public key, email me with the subject: "get pgp-key"
--------------------------------------------------------------------------
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]