Re: hide / show oddities ?
There were some posts on this list about 4 months ago re: hide/show objects strangeness (http://runtime-revolution.278305.n4.nabble.com/hide-show-oddities-td4686263.html). Having struck this today on a project I’ve come to the conclusion that it’s something to do with the graphics caching that is being used when we have acceleratedRendering set to true. In our case, we had some scrolling groups with subgroups in which each contained buttons that may be shown or hidden at times. It appeared as though these weren’t being updated, however, if the overall containing group wasn’t visible. Once it was made visible however, scrolling the group would update all the child objects ok. However, that’s not good enough… So the solution for now, on entry to this card, is to turn acceleratedRendering off, which presumably disables the graphics caching, and all objects are now updated correctly. Yet to be seen is the effect this may have on other bits that perhaps need the better graphics performance… So if you’re also seeing strange behaviour with hide/show or setting the visible property, try turning off acceleratedRendering to see if that helps. (I’d already tried setting the layerMode and it didn’t seem to help). HTH someone. cheers Alan -- Alan Stenhouse alanstenho...@hotmail.com Check out our apps on the App Store: BeatSpeak - the multilingual talking metronome EV-Point - Find your nearest Electric Vehicle Recharge Station. Re-Collections - Make your family history come to life. Every picture tells your story. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: hide / show oddities ?
Thanks everyone for the suggestions, experiences, etc. Definitely not mismatched lock / unlock, since all the other parts of the screen are fully updated. I couldn't (naturally) recreate anything in a smaller sample, nor even reliably be sure to make it happen on demand. I finished up using a pattern rather like show grp abc set the vis of grp abc to true wait 0 millisecs with messages every time I want to show or hide things (and had seen a problem). No visible problems now - and no real idea how to try to track it down any further. I'll build an artificial deeply nested group structure in a stack, and randomly change the hide/show status of different groups within it, and test for visibility mismatches - and leave that running as a test. If that shows anything, I'll submit a bug report (and update this list for info - but I won't hold my breath :-) Thanks again -- Alex. On 27/11/2014 11:13, Alan Stenhouse wrote: Possibly mismatched lock screen / unlock screen ? (Though still seems very weird and sounds like a bug). On 27/11/2014, at 11:52 AM, use-livecode-requ...@lists.runrev.com wrote: From: Alex Tweedly a...@tweedly.net To: How to use LiveCode use-livecode@lists.runrev.com Subject: hide / show oddities ? Message-ID: 5475bd91.6090...@tweedly.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 puts (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 ... ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: hide / show oddities ?
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 livf...@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 a...@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 puts (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@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: hide / show oddities ?
The subject is intriguing for some future release. Hide oddities would be great for giving demos; show oddities would great for debugging. Thanks for the suggestions, Alex. -- Dick ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: hide / show oddities ?
Dick- groan -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: hide / show oddities ?
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 a...@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 puts (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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: hide / show oddities ?
Possibly mismatched lock screen / unlock screen ? (Though still seems very weird and sounds like a bug). On 27/11/2014, at 11:52 AM, use-livecode-requ...@lists.runrev.com wrote: From: Alex Tweedly a...@tweedly.net To: How to use LiveCode use-livecode@lists.runrev.com Subject: hide / show oddities ? Message-ID: 5475bd91.6090...@tweedly.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 puts (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 ... ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
hide / show oddities ?
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 puts (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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: hide / show oddities ?
Alex. I feel your pain, and you have described a surreal situation very nicely. I cannot duplicate what you see. What happens if you start from scratch, or is the project too far along? Craig -Original Message- From: Alex Tweedly a...@tweedly.net To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wed, Nov 26, 2014 6:47 am Subject: hide / show oddities ? 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 puts (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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: hide / show oddities ?
I have a large project running under 6.6.x (all versions over the years) which uses hide/show all the time and it's always worked okay. I can't think of anything that would cause your symptoms though, it's pretty odd. On November 26, 2014 5:46:25 AM CST, Alex Tweedly a...@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 puts (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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: hide / show oddities ?
Interesting… When I reported my own stack anomalies with version 7, this sounds remarkably like what I was seeing, but I was showing and hiding stacks, primarily the main stack from which all other stacks were launching. You may have uncovered the bug which bit me. Bob S On Nov 26, 2014, at 07:06 , dunb...@aol.commailto:dunb...@aol.com wrote: This feels so unlikely that I wonder if I'm simply doing something wrong - but thought I'd ask first. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: hide / show oddities ?
Hi Alex, I've occasionally seen this and been content setting the visible property as a workaround. Should have submitted a qcc report but didn't. Pete lcSQL Software On Nov 26, 2014 3:46 AM, Alex Tweedly a...@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 puts (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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: hide / show oddities ?
Pete- Wednesday, November 26, 2014, 8:00:21 AM, you wrote: I've occasionally seen this and been content setting the visible property as a workaround. Should have submitted a qcc report but didn't. I've also seen this occasionally, but nothing I could narrow down to an actual recipe. Show/hide and the visible property don't always seem to be acting like they're in sync. And other times they do. -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: hide / show oddities ?
Finding a recipe was my problem too. It hasn't happened for a while but I think it might have had something to do with nested groups. While we're talking about groups, I feel they're unnecessarily difficult to edit in LC. I find myself constantly clicking on the Select Grouped icon when I'm formatting groups and their controls. And trying to move a nested group to a different location is a pain - you should be able to do that without going into edit mode or being limited to using the arrow keys. I'd like to see something like this irrespective of the state of selectGroupedControls. If I click on a control within a group, it is selected. If I click within the rectangle of a group but outside the rectangle of any of its controls, the group is selected even if it's a nested group and I can then get into edit mode on it or drag it around the screen. That happens to suit the way I use groups but maybe it wouldn't work for all. I'd be happy if the above behavior was conditional on a modifier key in conjunction with mouse click. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Wed, Nov 26, 2014 at 8:56 AM, Mark Wieder mwie...@ahsoftware.net wrote: Pete- Wednesday, November 26, 2014, 8:00:21 AM, you wrote: I've occasionally seen this and been content setting the visible property as a workaround. Should have submitted a qcc report but didn't. I've also seen this occasionally, but nothing I could narrow down to an actual recipe. Show/hide and the visible property don't always seem to be acting like they're in sync. And other times they do. -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode