Welcome, Guest. Please login or register.
Amiga Kit Amiga Store Iridium Banner AMIStore App Store A1200/A600 4xIDE Interface

AuthorTopic: MUI RegisterGroup & Localisation  (Read 806 times)

0 Members and 1 Guest are viewing this topic.

Offline Slash

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 112
  • Country: gb
  • Total likes: 0
  • Gender: Male
    • http://www.the-snakepit.co.uk
MUI RegisterGroup & Localisation
« on: October 07, 2003, 12:29:09 AM »
OK this is probably going to sound like a really easy question, but how do I change the titles of my Tabs/Pages which have been created with Register group, e.g.

static char *titles[] = {"One", "Two", NULL};

Blah Blah,

Child, RegisterGroup(titles),
    Blah, Blah
End,

I can't do a

char *titles[] = {localestr(ONE), localestr(TWO), NULL};

MUI doesn't like that.

I can't do a

static char *titles[] = {localestr(ONE), localestr(TWO), NULL};

because GCC won't compile that.

So how do I register my tabs/pages with dynamic titles? Am I missing something silly? I don't want to have the page titles hardcoded into the application, there must be a way... must be :-)

Thanks!
 

Offline itix

Re: MUI RegisterGroup & Localisation
« Reply #1 on: October 07, 2003, 01:25:35 AM »
Before creating register group:

titles[0] = localestr(ONE);
titles[1] = localestr(TWO);
My Amigas: A500, Mac Mini and PowerBook
 

Offline Slash

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 112
  • Country: gb
  • Total likes: 0
  • Gender: Male
    • http://www.the-snakepit.co.uk
Re: MUI RegisterGroup & Localisation
« Reply #2 on: October 07, 2003, 09:44:10 AM »
Doh!!!

Thanks for that itix, my brain ain't working half as well as it used to!!

That's so simple and obvious now, yet I couldn't figure the bugger out last night!! :-(

Ta