[08 Feb 2008] Getting Layered
Posted: Sat Jun 13, 2020 5:31 pm
Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 08 Feb 2008 12:03:47 -0000
I'm having some real problems with layers.
I have attached some code to a page in my Designer project which looks a little like this:
I call the function the first time the page is drawn by attaching the following code to an object
I also have some code attached to an images click-event:
I would expect the function to fail on its initial execution at the start of the page with a 'specified layer is out of range', as Layer 951 is hidden before it is created. If this were the case I could Disable ExitOnError for that section of the code. However the code executes perfectly the first time around, but fails when I call it again from the image-click with 'specified layer is out of range'. The line of code which it points to as failing is HideLayer(951)
Any ideas? Thanks in advance!
I'm having some real problems with layers.
I have attached some code to a page in my Designer project which looks a little like this:
Code: Select all
Function GetDrawerNames(firstdrawerno)
For drawerloop = 1 to 5
drawernames$[drawerloop] = (drawers$[drawerloop + firstdrawerno])
Next
SetFont("CGTimes.font", 40)
SetFontColor($EA000D)
t$ = ("[edge=$180F77,1]"..drawernames$[1])
HideLayer(951)
CreateTextObject (901,t$, #LEFT, 0)
InsertLayer (951, #TEXTOBJECT, 901, 886, 270)
;... (the above is then repeated 4 times, plotting the layers at different positions)
EndFunction
Code: Select all
fdn=1
GetDrawerNames(fdn)
Code: Select all
fdn=fdn+1
GetDrawerNames(fdn)
Any ideas? Thanks in advance!