Blitz (146/176)

From:David McMinn
Date:30 Jul 2001 at 23:52:46
Subject:Re: MUI help bubbles

On 30 Jul 01, at 18:57, Gareth broke out long enough to write:

> > I'd like to add help bubbles to each of the gadgets,and have tries using
> > MUIs #MUIM_ShortHelp, but all I get is an empty bubble. The docs for this
> > #haen't been written.
>
> Instead of MUIAddTags #whatever,#MUIM_ShortHelp,"This is help text." use:
>
> MUIAddTags #whatever,#MUIM_ShortHelp,Null("This is help text.")

It would probably be better to assign the string to a variable and then
pass the address of the string variable to the MUI command. I think the
problem is that when you pass a string directly it is only put into the
temporary string buffer (and overwritten later - which is why all the
bubbles are empty).

Null(xxx) just allocates a new string in memory and returns a pointer to
it. It won't be freed until the program exits. Plus you can't change the
strings as easiyl without using a variable (*cough* localisation *cough*).

[) /\ \/ ][ [) |\/| c |\/| ][ |\| |\| | dave@blitz-2000.co.uk
http://members.nbci.com/david_mcminn | ICQ=16827694

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie