Blitz (183/218)

From:Richard Brooklyn
Date:28 Aug 2001 at 09:29:08
Subject:Re: MUICycle

Hello Steve

On 28-Aug-01, you wrote:

> Hello all,
>
> Has anyone managed to get MUICycle working with an array. I need to set up
> a cycle gadget, whose contents I don't know at initialisation (so I'm
> using
>
> MUIAddTags cyclegadget,#MUIA_Cycle_Entries,listarray()
>
> But all I get is garbage.
>
> the contents of the cycle may change during the course of the program, so
> I need to be able to reset the list in the same way.
>
> All the best

I asked the same question a while back. And got this response from David
McMinn:
"
Oh, and are you sure that's how MUICycles work? I'm sure someone asked a
similar question a few weeks ago, and you need to supply an array of
string pointers terminated with a NULL pointer, i.e.:

Dim strings.s(10)
strings(0)="blah"
strings(1)="balaaah"
strings(2)="foo"
...
strings(10)="bar"

Dim strptr.l(11) ; Notice -> 1 bigger than the string array
for i.w=0 to 10
strptr(i)=&strings(i)
next
strptr(11)=0

MUICycle #selector,&strptr(0)
"

It fixed my problem and worked very well. It's a shame the EFMui
documentation lacked things like that.

-Richard.

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