C (98/301)

From:Christian Hattemer
Date:30 Aug 99 at 18:45:52
Subject:Re: Creating catalogs for NewMenus

From: Christian Hattemer <Chris@heaven.riednet.wh.tu-darmstadt.de>

On 30-Aug-99 Darryl Hartwig wrote:

>> Get Aminet/comm/mail/ML-Support_Src.lha and look at Locale.c and
>> Mainwin.c. I'm too lazy to paste everything here now... ;-)

> This is to do the menus (that are defined in a .h file, yes?

My menus are in the .c file, but this shouldn't be much difference.
Yes, it localizes the menu labels and the shortcut keys.

>> BTW: Don't create the locale includes by hand, use FlexCat (also Aminet).
>> This saves a lot of work. Aminet/dev/c/Storm_FlexCat.lha contains the .sd
>> files I use.

> Yes, I'm using FlexCat, and I've modified the .sd files to work for me
> (I'm using Dice and the way the source was, it didn't quite compile and
> work for me).

The code to localize a NewMenu struct isn't in the FlexCat archive, I've
written it myself. (Well, I adapted it from MUIMine...) I also did some
improvements I can't remember in detail.

You'll find it in Locale.c, the .sd files used to create it are in the
Archive mentioned above.

Bye, Chris



__
///
__ /// Amiga 4000T 040/40 Team *AMIGA*
\\\///
\XX/ http://www.riednet.wh.tu-darmstadt.de/~chris/

"Es geschah am Tag der offenen T�r: Die Lufthansa verliert Passagiere."
(Wie Bitte?! Sendung vom 31.5.97)