Re: Setting visible of control within group to false
Message: 16 Date: Sun, 02 Oct 2011 19:25:25 -0500 From: J. Landman Gay jac...@hyperactivesw.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: Setting visible of control within group to false Message-ID: 4e8900f5.3010...@hyperactivesw.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed That's the default behavior, where a group resizes to accomodate its objects. You can set the group's boundingrect property to prevent the resizing. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com And Key Ray wrote: I think you can also set the lockLocation of the group to true to prevent it's resizing as well. Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ Jacque and Ken, Thanks for your suggestions. As usual, much of RR's finer points are lost on me. I should have consulted Richard's 4wProps to see the options available. Love that utility. Actually I can't lock the bounding rectangle. I am experimenting with a new type of programable graphics--at least new to me. And that is programing the dynamics objects moving within a group, a group that is also moving. As metaphor, consider a man rowing a boat across a lake. The man and boat are a group and the group is moving relative to the lake. But the man in the boat is also rowing within the group, moving his arms and back relative to the boat. So far controlling this motion-within-motion is working out better than I expected, thanks to RunRev's implementation of the group. (Working well within the limitations of graphics programing in RunRev. I have never found a way to truly move an object smoothly across the screen. There is always some herky-jerky element in the motion. And then there is the long-standing screen refresh problem on the Mac.) But my problem with repositioning a group when a component within the group has been set to invisible was easily fixed once I understood what was go on, namely, as you pointed out, the group resizes to accommodate only the VISIBLE elements. So when repositioning, be sure the group contains the same elements. ___ 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
Setting visible of control within group to false
Is this supposed to happen? When I set the visible of a control within a group to false, it is removed from the group. As a work-around I find that if I include a rectangle that physically encompasses everything in the group and THEN set the visible of a control within the rectangle to false, it remains in the group. Jim ___ 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: Setting visible of control within group to false
Jim: Are you sure the control gets physically placed outside the group? Are you using any scripts to manipulate object layers? Doing a quick test here with a single object in a group, I don't see your result (v4.6.4). The rect of a group does indeed collapse to encompass only its visible contents, but the hidden object/s should continue to remain part of the group. If you're seeing something else, it would be good know what the circumstances are. Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, James Hurley wrote: Is this supposed to happen? When I set the visible of a control within a group to false, it is removed from the group. As a work-around I find that if I include a rectangle that physically encompasses everything in the group and THEN set the visible of a control within the rectangle to false, it remains in the group. Jim ___ 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: Setting visible of control within group to false
Scott, Thanks for your reply. My mistake. It is not removed from the group. What happens is that the dimensions of the group change when an outside control is made invisible. My script did something line this: --With the outside button invisible set the visible of button myButton to true -- this is an outside button put the loc of group myGroup into tGroupLoc --do some stuff set the visible of button myButton to false --This is an outside button set the loc of group myGroup to tGroupLoc -- And this is a NEW location due to the shrinkage of the group size. This is remedied by including everything within a rectangle (of zero line size). This way the dimensions of the group remain intact. Another alternative, I see, would be to set the visible to false AFTER reseting the group location--reverse the order of the last two steps. This expands the group size to include the now visible button. Jim Jim: Are you sure the control gets physically placed outside the group? Are you using any scripts to manipulate object layers? Doing a quick test here with a single object in a group, I don't see your result (v4.6.4). The rect of a group does indeed collapse to encompass only its visible contents, but the hidden object/s should continue to remain part of the group. If you're seeing something else, it would be good know what the circumstances are. Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, James Hurley wrote: Is this supposed to happen? When I set the visible of a control within a group to false, it is removed from the group. As a work-around I find that if I include a rectangle that physically encompasses everything in the group and THEN set the visible of a control within the rectangle to false, it remains in the group. Jim ___ 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: Setting visible of control within group to false
On 10/2/11 3:24 PM, James Hurley wrote: Scott, Thanks for your reply. My mistake. It is not removed from the group. What happens is that the dimensions of the group change when an outside control is made invisible. That's the default behavior, where a group resizes to accomodate its objects. You can set the group's boundingrect property to prevent the resizing. -- 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: Setting visible of control within group to false
Jim: Me neither. I made three buttons (B1, B2, B3) and grouped them into group grp1. This in another button script: on mouseup set the visible of btn b2 to false answer the owner of btn b2 end mouseUp I get group grp1. LC 4.5.3. Craig Newman -Original Message- From: Scott Rossi sc...@tactilemedia.com To: LiveCode Mail List use-livecode@lists.runrev.com Sent: Sun, Oct 2, 2011 10:53 am Subject: Re: Setting visible of control within group to false Jim: Are you sure the control gets physically placed outside the group? Are you using any scripts to manipulate object layers? Doing a quick test here with a single object in a group, I don't see your result (v4.6.4). The rect of a group does indeed collapse to encompass only its visible contents, but the hidden object/s should continue to remain part of the group. If you're seeing something else, it would be good know what the circumstances are. Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, James Hurley wrote: Is this supposed to happen? When I set the visible of a control within a group to false, it is removed from the group. As a work-around I find that if I include a rectangle that physically encompasses everything in the group and THEN set the visible of a control within the rectangle to false, it remains in the group. Jim ___ 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: Setting visible of control within group to false
On Oct 2, 2011, at 7:25 PM, J. Landman Gay wrote: On 10/2/11 3:24 PM, James Hurley wrote: Scott, Thanks for your reply. My mistake. It is not removed from the group. What happens is that the dimensions of the group change when an outside control is made invisible. That's the default behavior, where a group resizes to accomodate its objects. You can set the group's boundingrect property to prevent the resizing. I think you can also set the lockLocation of the group to true to prevent it's resizing as well. Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.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