Amiga.org
Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Slash 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!
-
Before creating register group:
titles[0] = localestr(ONE);
titles[1] = localestr(TWO);
-
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