Hi
Further to a previous post re: sub-Stack cards, I have one other 'niggle' and can't find a way around it :
Again, a script on my main-Stack displays a sub-Stack card (typically these are dialogs, calculators, date pickers etc).... and so to my 'problem'...
The sub-Stack card, when invoked, will ALWAYS display (as it should !)
Not always (but most of the time) this sub-Stack card will display with its objects INTERLEAVED BENEATH some object(s) on the calling man-Stack card - as if the 'layer'ing of the controls on the main-Stack and the sub-Stack cards are somehow corrupt / messed up.
I thought that calling a card would, with respect to the screen, overwrite completely any pre-displayed card (and its objects) - Obviously I'm wrong but... Can anyone help here, shed some light on this for me please. Any tips / tricks ?
In addition, if one knows where an obscured control is on the sub-Stack card (say it's hidden by some recalcitrant control(s) of the calling main-Stack card - see above) then one can invoke the script of that obscured control by clicking on the main-Stack card control that's hiding it (in the right area for the control below it) !
It's as if LC knows the control that SHOULD be used is the control on the sub-Stack card (not the overlaid control of the main-Stack card) and, so, ignores any script belonging to the 'hiding' control (on the main-Stack) and invokes the script of the underlying sub-Stack card control....
All extremely weird but explainable in a round-about way (apologies if my explanation above is a little... confusing... I'm pretty confused myself)...
Finally, If I place a control on a sub-Stack card that I know will ALWAYS be clear (there isn't a control in a similar screen position on the calling main-Stack card) then I can invoke a card redraw routine and my card will be redrawn ABOVE all other controls...
Any ideas ? Anyone seen this strange behaviour and found a way around it please ?
Display of sub-Stack Cards
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Display of sub-Stack Cards
I'm 'getting there'... just far too slowly !
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1
-
- Livecode Opensource Backer
- Posts: 132
- Joined: Mon Jan 14, 2013 3:37 pm
Re: Display of sub-Stack Cards
Hi
I've encountered a similar issue before. The problem for me was that controls on top of a transparent or semi-transparent control sometimes appeared to vanish but responded to input as if they were really there. Not only did the controls appear to vanish but also the same area of the semi-transparent control behind it went completely transparent. The problem occurred on some Android devices while on others it didn't. I eventually solved the problem by simply recreating the "vanishing" controls.
If you choose to also go this route, please remember to back up the control scripts before recreating the controls, so you can just paste their scripts back in.
I hope this helps.
Gerrie
I've encountered a similar issue before. The problem for me was that controls on top of a transparent or semi-transparent control sometimes appeared to vanish but responded to input as if they were really there. Not only did the controls appear to vanish but also the same area of the semi-transparent control behind it went completely transparent. The problem occurred on some Android devices while on others it didn't. I eventually solved the problem by simply recreating the "vanishing" controls.
If you choose to also go this route, please remember to back up the control scripts before recreating the controls, so you can just paste their scripts back in.
I hope this helps.
Gerrie
010100000110010101100001011000110110010100111101010011000110111101110110011001010010101101010100011100100111010101110100011010000010101101001010011101010111001101110100011010010110001101100101