Re: Resizing stacks and make changes on more than one card
revUpdateGeometry needs to be called in the preOpenCard handler to take care of GM updates. Thanks, Brian On Mar 9, 2019, 8:37 AM -0500, Tore Nilsen via use-livecode , wrote: > Thank you for your suggestions. I did not have any resizeStack handlers, but > relied on the geometry manager to position the few elements I needed to > reposition. I managed to have the changes implemented on both cards by using > send resizeStack to me in a preOpenCard handler on both cards. > > Best regards > Tore Nilsen > > > 9. mar. 2019 kl. 14:29 skrev Paul Dupuis via use-livecode > > : > > > > move the resizeStack handlers from each CARD to the STACK script and > > combine them so they update both cards to the new stack size > > > > > > On 3/9/2019 7:51 AM, Tore Nilsen via use-livecode wrote: > > > I have a stack with 2 cards. On these cards, some elements change size or > > > position when the stack is resized. As the resizeStack message is only > > > sent to the current card, any changes only happen on this card. If the > > > user then navigates to the other card, elements will be out of order on > > > this card. > > > > > > I have tried sending resizeStack to the other card in a resizeStack > > > handler on each card, but this only causes a recursion limit error, > > > obviously. I have also tried to send resizeStack before actually > > > navigating to the other card with no result. > > > > > > Do anyone have a solution for this, apart from arranging the elements in > > > an openCard handler? > > > > > > > > > Best regards > > > > > > Tore Nilsen > > > > > > > > > ___ > > > 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 ___ 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: Resizing stacks and make changes on more than one card
Thank you for your suggestions. I did not have any resizeStack handlers, but relied on the geometry manager to position the few elements I needed to reposition. I managed to have the changes implemented on both cards by using send resizeStack to me in a preOpenCard handler on both cards. Best regards Tore Nilsen > 9. mar. 2019 kl. 14:29 skrev Paul Dupuis via use-livecode > : > > move the resizeStack handlers from each CARD to the STACK script and combine > them so they update both cards to the new stack size > > > On 3/9/2019 7:51 AM, Tore Nilsen via use-livecode wrote: >> I have a stack with 2 cards. On these cards, some elements change size or >> position when the stack is resized. As the resizeStack message is only sent >> to the current card, any changes only happen on this card. If the user then >> navigates to the other card, elements will be out of order on this card. >> >> I have tried sending resizeStack to the other card in a resizeStack handler >> on each card, but this only causes a recursion limit error, obviously. I >> have also tried to send resizeStack before actually navigating to the other >> card with no result. >> >> Do anyone have a solution for this, apart from arranging the elements in an >> openCard handler? >> >> >> Best regards >> >> Tore Nilsen >> >> >> ___ >> 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: Resizing stacks and make changes on more than one card
move the resizeStack handlers from each CARD to the STACK script and combine them so they update both cards to the new stack size On 3/9/2019 7:51 AM, Tore Nilsen via use-livecode wrote: I have a stack with 2 cards. On these cards, some elements change size or position when the stack is resized. As the resizeStack message is only sent to the current card, any changes only happen on this card. If the user then navigates to the other card, elements will be out of order on this card. I have tried sending resizeStack to the other card in a resizeStack handler on each card, but this only causes a recursion limit error, obviously. I have also tried to send resizeStack before actually navigating to the other card with no result. Do anyone have a solution for this, apart from arranging the elements in an openCard handler? Best regards Tore Nilsen ___ 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: Resizing stacks and make changes on more than one card
preOpenCard is what I’ve used. I know it includes “openCard”, but it is a different handler. Thanks, Brian On Mar 9, 2019, 7:52 AM -0500, Tore Nilsen via use-livecode , wrote: > I have a stack with 2 cards. On these cards, some elements change size or > position when the stack is resized. As the resizeStack message is only sent > to the current card, any changes only happen on this card. If the user then > navigates to the other card, elements will be out of order on this card. > > I have tried sending resizeStack to the other card in a resizeStack handler > on each card, but this only causes a recursion limit error, obviously. I have > also tried to send resizeStack before actually navigating to the other card > with no result. > > Do anyone have a solution for this, apart from arranging the elements in an > openCard handler? > > > Best regards > > Tore Nilsen > > > ___ > 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
Resizing stacks and make changes on more than one card
I have a stack with 2 cards. On these cards, some elements change size or position when the stack is resized. As the resizeStack message is only sent to the current card, any changes only happen on this card. If the user then navigates to the other card, elements will be out of order on this card. I have tried sending resizeStack to the other card in a resizeStack handler on each card, but this only causes a recursion limit error, obviously. I have also tried to send resizeStack before actually navigating to the other card with no result. Do anyone have a solution for this, apart from arranging the elements in an openCard handler? Best regards Tore Nilsen ___ 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