delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/12/10:00:36

From: "Johnny P." <gimli AT interaccess DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: [Allegro] Looking for simple GUI examples
Date: Fri, 12 Jun 1998 08:44:00 -0500
Organization: The World's Usenet -- http://www.Supernews.com
Lines: 54
Message-ID: <6lrbd8$bj1$1@supernews.com>
References: <q%xf1.364$Y3 DOT 1886597 AT news DOT itd DOT umich DOT edu> <35807BE8 DOT 7B8 AT usa DOT net>
NNTP-Posting-Host: 207.208.101.100
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Andrew wrote in message <35807BE8 DOT 7B8 AT usa DOT net>...
>Krian U wrote:
>>
>> I'm new to GUI programming, and I'd like to know how to do some basic GUI
>> stuff in Allegro. The included examples were helpful in showing how to do
>> buttons and stuff, but I haven't been able to figure out how to do
pull-down
>> menus.
>>
>> If anyone has a short snippet of code that shows how to implement a menu,
can
>> you please post it?
>>
>> Thanks,
>>
>> -Krian
>
>Please look into your allegro/examples/ directory.  there is at least 2
>examples in there that use GUI functions.  Also, please people, start
>reading the docs! It's all in there, in good ole' plain english!

Although usually quiet, I have a problem with comments like the above being
sent in reply to posts and I wish to give my opinion.
I don't assume anyone has read the docs.  If they haven't read them, and a
question is asked, then point them to the right doc if the answer for what
they need _is_ there.  Some of you are great at this, and if I was told
every time I asked "look in the docs," I would probably stop posting to the
newsgroup.  Some people just aren't great at sifting through the volumes of
information just to find the thing they are looking for.  There are also
some foreign programmer's who don't speak or read English very well and
sometimes code examples make more sense.  Let's be a little open to other
people's needs and not so "read the stinkin' docs" about things.  I read the
docs, but sometimes the docs are missing something.  If they had everything
in them, this group wouldn't exist.

Specifically related to this thread, the person who originated the message
is obviously _new_ to djgpp, so let's try to encourage him to continue using
this newsgroup.  I know I have found it very helpful.  Also, which example
in the allegro/examples/ were you referring to?  I have Allegro 3.0 and I
couldn't find one with a menu example.  The only two GUI examples seemed to
be ex13 and ex14 and neither have a menu.

To Krian: In the allegro/tools/ directory you'll find grabber.c.  This is a
pretty good example of how menus work.  I don't program with Allegro's GUI,
but if you look through this code I think you'll be able to ask questions
more specific to your need.

cya,

Johnny P.



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019