hide / show oddities ?
Graham Samuel
livfoss at mac.com
Fri Nov 28 18:08:23 EST 2014
Just to add that I got this working just now, in the strangest way. My code wanted to show a splash screen for three seconds, so I coded
go to cd “splash” of stack “mySplashScreen”
wait 3 seconds
sometimes I put a ‘show’ in there too, but the splash screen didn’t show. I found that if I put
wait 3 seconds with messages
then the card does show up. Seems like snake oil to me. I hope I can create something simple that can be reported as a bug, but I haven’t got there yet. I should say that there shouldn’t be any messages, since this is pretty much the start of the program and no other actions have been launched (at least I don’t think so!).
Graham
> On 27 Nov 2014, at 11:13, Graham Samuel <livfoss at mac.com> wrote:
>
> Coming a little late to this conversation, I think I have seen this too, in LC 7 rc2. I have several instances of ‘show’ that work, and one, where I have to show a splash screen, that doesn’t. Like you Alex, I automatically thought that it must be something I’m doing wrong, but now I am not so sure. Am about to do more tests. I notice that if I put something that stops the app running (I mean an ‘answer’ message) as the next line after the ‘show’, the shown stack does appear (is visible) behind the dialog box; but without the ‘answer’, the ‘show’ appears to be completely ignored, even if I follow it with a ‘wait’. Gotta find out what this is - it definitely worked in all the 6.x versions of LC.
>
> Graham
>
>> On 26 Nov 2014, at 11:46, Alex Tweedly <alex at tweedly.net> wrote:
>>
>>
>> This feels so unlikely that I wonder if I'm simply doing something wrong - but thought I'd ask first.
>>
>> I had a script which is supposed to (amongst other things) hide one particular group. Although it usually worked OK, in some cases, sometimes, the group would remain visible when it is not supposed to. Trying to find this in the IDE/debugger wasn't getting anywhere, so I reverted to using "put"s (but still in the IDE). I finished up after a few iterations with some code that said
>>
>>
>> ......
>> hide grp "abcde"
>> put "here now" && the vis of grp "abcde" &CR after msg
>> ....
>>
>> and it output
>> here now true
>>
>> So I changed the code to
>> ......
>> set the vis of grp "abcde" to false
>> put "here now" && the vis of grp "abcde" &CR after msg
>> ....
>> and what do you know - not only does it output "here now false", but the group *always* becomes invisible.
>>
>> Does "hide" do anything different from simply setting the visibility to false?
>> Is it remotely possible this isn't me misunderstanding something ?
>>
>> And then - in a completely different bit of the same app, in a different group, I have some code (in the group script) that was doing
>> ...
>> show me
>> ....
>> to ensure that the group was visible (inside a timed / delay loop). This would occasionally result in some graphics showing up wrongly (in the wrong colour) very briefly. Simply changing the code to
>> ....
>> set the visible of me to true
>> ....
>> again seems to fix this.
>>
>> To be honest, if someone else described these symptoms to me, I'd be looking for what else was going on that they had forgotten about :-)
>> But I've already done that - now I'm hoping someone can offer an idea of whether this is feasible.
>> Has anyone else seen anything like this ?
>> Should I be pursuing an attempt to make this happen in a smaller sample so I can submit a useful bug report ?
>>
>> (oh - glad you asked - Mac OSX 10.8.5, LC 6.6.2)
>>
>> Thanks
>> -- Alex.
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list