[07 Jan 2010] About HW4.5s X=layer(NIL, stuff)
Posted: Sat Jun 13, 2020 5:32 pm
Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 07 Jan 2010 11:54:17 -0000
Now how does that new (HW4.5) NIL thing work in layers in practice.
For if i do:
it works fine,
but if i then add third line of:
it keeps complaining that argument 3 needs a string.
When i check with debugprint, it gives me answer to newlayerid as being "NIL"
So how can it anyway set that serlayername correctly to correct layerid with that NIL, but not work on makebutton?
Of course there was no problem in practice since i simply referred third argument as "mylayername" and fixed the problem, but just in case i need it at some other point, it would help to understand how this works.
For i thought it would return some number for newlayerid, depending on what numbered ID is next one free instead of NIL.
Now how does that new (HW4.5) NIL thing work in layers in practice.
For if i do:
Code: Select all
newlayerid=Circle(stuff)
setlayername(newlayerid, "mylayername")
but if i then add third line of:
Code: Select all
makebutton(NIL, #LAYERBUTTON, newlayerid...)
When i check with debugprint, it gives me answer to newlayerid as being "NIL"
So how can it anyway set that serlayername correctly to correct layerid with that NIL, but not work on makebutton?
Of course there was no problem in practice since i simply referred third argument as "mylayername" and fixed the problem, but just in case i need it at some other point, it would help to understand how this works.
For i thought it would return some number for newlayerid, depending on what numbered ID is next one free instead of NIL.