Page 1 of 2
Where did my stack go?!
Posted: Fri Aug 14, 2020 4:18 pm
by bd525
Development was proceeding well then--suddenly--the stack window had shrunk vertically by 90% and all elements disappeared from cards. I don't think I did anything, but I'm a rookie; can't be sure. And the project was saved like that. Did the event occur and I unwittingly saved my project? Probably, but again, I can't be sure. Backup is a day old. Worked A LOT on project yesterday; would sure like not to lose all that. Fortunately, scripts are not lost. Nor are project elements: cards, graphics, buttons and fields. They're all in the project browser, and all up to date. If I have to place them back on the cards I wouldn't be crazy about that, but it would be better than having to redo all of yesterday's work in my day-old backup. What am I missing here? Help!!!
Bruce
Re: Where did my stack go?!
Posted: Fri Aug 14, 2020 4:44 pm
by Klaus
Hi Bruce,
no idea what happend, but since all controls etc. are still visible in the Project Browser,
maybe you just need to adjust width/height of your stack back to the original size?
Best
Klaus
Re: Where did my stack go?!
Posted: Fri Aug 14, 2020 6:01 pm
by bd525
Thanks. All is well. The elements were still on the page but scrolled way up above, out of sight. I appreciate your help!
Re: Where did my stack go?!
Posted: Sat Aug 15, 2020 2:42 am
by dunbarx
This sort of thing happens in one other way as well, that the loc of the stack is somehow set to a position off screen. Check both if this happens again.
Craig
Re: Where did my stack go?!
Posted: Sat Aug 15, 2020 1:16 pm
by bd525
Somehow my stack and main card dimensions went nuts. Height was in the 2000s. I'm pretty sure that's not something I did inadvertently. I was able to fix the stack property but it's grayed out in the card property window. I dread that my problems with "disappearing" card elements will continue.

Re: Where did my stack go?!
Posted: Sat Aug 15, 2020 1:45 pm
by richmond62
Well; here's a thought:
In each cardScript inside an on preOpenCard thing set all your dimensions and positions of objects explicitly
[Yes, I know doing all 'that' is a pain in the bum]
then, with any luck, no-one is going to get any negative surprises.
Re: Where did my stack go?!
Posted: Sat Aug 15, 2020 1:46 pm
by Klaus
bd525 wrote: ↑Sat Aug 15, 2020 1:16 pm
I was able to fix the stack property but it's grayed out in the card property window.
What property exactly is greyed out?
Re: Where did my stack go?!
Posted: Sat Aug 15, 2020 3:42 pm
by bd525
Everything is grayed out except for the 2nd location field. The numbers in the grayed out fields respond to the up and down arrows, but those changes have no effect. The values revert after closing the properties dialogue.
Re: Where did my stack go?!
Posted: Sat Aug 15, 2020 3:43 pm
by bd525
I'll follow your suggestions, richmond62. Thanks!
Re: Where did my stack go?!
Posted: Sat Aug 15, 2020 4:24 pm
by richmond62
One of the very simple reasons your card sizes and positions are greyed out is because a card cannot have a different size
or position to the stack it belongs to.
Re: Where did my stack go?!
Posted: Sat Aug 15, 2020 5:19 pm
by bd525
That makes sense, richmond62, and it's the reason I tried to edit the numbers to bring the card and stack into agreement. But I can't! And: Setting card width and height in preOpenStack doesn't work. Just causes an error.
Re: Where did my stack go?!
Posted: Sat Aug 15, 2020 7:55 pm
by SparkOut
That's basically because the card inherits the stack dimensions. Change the stack properties, and the card fills it. You can read a card's height or width, (because they are inherited - you might as well read the stack measurements) but not set them.
Re: Where did my stack go?!
Posted: Sat Aug 15, 2020 8:26 pm
by bd525
I tried that, SparkOut, and nothing. Changed the stack height a bit, but the card height stayed at 2450. Am I misunderstanding?
Re: Where did my stack go?!
Posted: Sat Aug 15, 2020 8:32 pm
by richmond62
Setting card width and height in preOpenStack doesn't work.
Well, "objously" . . . however think about this:
pseudocode . . .
on preOpenCard
set the width of stack "EDDYKOISY" to the dimensions I want this card to be
end preOpenCard
-
Re: Where did my stack go?!
Posted: Sat Aug 15, 2020 9:11 pm
by bd525
That didn't work either, richmond62.