Substack Launched Wrong Size after Mainstack Fullscreened
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 115
- Joined: Thu Mar 06, 2014 9:29 am
Substack Launched Wrong Size after Mainstack Fullscreened
Maybe there is a simple explanation for this, and hopefully a simple workaround. Maybe somebody else has already brought it up, but I couldn't find it.
If you have a stack and a substack--let's say you made a modal dialog window as a substack--and you make the mainstack fullscreen via any of the modes that scale it, the substack is scaled in the same proportion.
I made my substack from image of a certain size, and I don't really want resizing. I went ahead and calculated the difference in stack size between fullscreenmode true and false, but when I apply the ratio back to the substack as a scale factor (a scale factor of 1 seems to always be based on the mainstack), it still doesn't look quite right.
I'd post code, but I don't have it with me and it's actually quite easy to replicate the problem.
I just want my substacks to avoid any scaling altogether, even when the mainstack is fullscreen. I'm using a fun font that looks great, but not when scaled up or down even by the slightest degree.
If you have a stack and a substack--let's say you made a modal dialog window as a substack--and you make the mainstack fullscreen via any of the modes that scale it, the substack is scaled in the same proportion.
I made my substack from image of a certain size, and I don't really want resizing. I went ahead and calculated the difference in stack size between fullscreenmode true and false, but when I apply the ratio back to the substack as a scale factor (a scale factor of 1 seems to always be based on the mainstack), it still doesn't look quite right.
I'd post code, but I don't have it with me and it's actually quite easy to replicate the problem.
I just want my substacks to avoid any scaling altogether, even when the mainstack is fullscreen. I'm using a fun font that looks great, but not when scaled up or down even by the slightest degree.
Re: Substack Launched Wrong Size after Mainstack Fullscreene
Hi Bassplayer,
and your substack does not have any "pre-/openstack" handler of its own, then it will execute the stack script
of your mainstack, get the picture? Inheritance! Maybe that is happening here?
To avoid this, simply add a "dummy" handler to your substack stack script like this:
However, I am just guessing...
Best
Klaus
Another bassplayer: http://www.major-k.de/bass
if you do this in the "pre-/openstack" handler of the mainstack which is in the stack script of the mainstack...and you make the mainstack fullscreen via any of the modes that scale it...
and your substack does not have any "pre-/openstack" handler of its own, then it will execute the stack script
of your mainstack, get the picture? Inheritance! Maybe that is happening here?
To avoid this, simply add a "dummy" handler to your substack stack script like this:
Code: Select all
on preopenstack
##
end preopenstack
on openstack
##
end openstack
Best
Klaus
Another bassplayer: http://www.major-k.de/bass

-
- Posts: 115
- Joined: Thu Mar 06, 2014 9:29 am
Re: Substack Launched Wrong Size after Mainstack Fullscreene
Ah, Klaus, I thought you must be a bassist too--the way you're always creatively improvising
Here's me jamming with myself if you're interested https://www.youtube.com/watch?v=8a7WQzFv-OE
I've included a stack that doesn't use preopenstack, and you can see that it's still an issue. It seems that once you've set fullscreen to true, the livecode engine stops using actual pixel measurements and starts defining "pixels" as (the fullscreenmode scale adjustment ratio * pixels).
In the stack, click "create modal" once before and once after you use the fullscreen toggle button.

I've included a stack that doesn't use preopenstack, and you can see that it's still an issue. It seems that once you've set fullscreen to true, the livecode engine stops using actual pixel measurements and starts defining "pixels" as (the fullscreenmode scale adjustment ratio * pixels).
In the stack, click "create modal" once before and once after you use the fullscreen toggle button.
- Attachments
-
- modal scaling.zip
- modal stack scaling issues
- (4.28 KiB) Downloaded 228 times
Re: Substack Launched Wrong Size after Mainstack Fullscreene
Hi theotherbassist,
Here is one of my last sessions with great guitar player Carol Knauber: https://www.youtube.com/watch?v=-wwfXG4Qzjg
, but what exactly are you exspecting?
On my Mac
...
put the width of this stack into w
put item 3 of the screenRect into screenW
set the fullscreen of this stack to "true"
set the scalefactor of stack "modal2" to (screenW / w)
## Will result in ca. 2.7
...
Problem is that also the dimensions (topleft etc.) are scaled up so the substack is "out of reach".
Best
Klaus
hmmm, sure there is sound in the moive? Cranked my volume up to 100, but no sound at all?theotherbassist wrote:Ah, Klaus, I thought you must be a bassist too--the way you're always creatively improvisingHere's me jamming with myself if you're interested https://www.youtube.com/watch?v=8a7WQzFv-OE
Here is one of my last sessions with great guitar player Carol Knauber: https://www.youtube.com/watch?v=-wwfXG4Qzjg
Yes, I see, had to force quit LC a coulle of timestheotherbassist wrote:I've included a stack that doesn't use preopenstack, and you can see that it's still an issue. It seems that once you've set fullscreen to true, the livecode engine stops using actual pixel measurements and starts defining "pixels" as (the fullscreenmode scale adjustment ratio * pixels).
In the stack, click "create modal" once before and once after you use the fullscreen toggle button.

On my Mac
...
put the width of this stack into w
put item 3 of the screenRect into screenW
set the fullscreen of this stack to "true"
set the scalefactor of stack "modal2" to (screenW / w)
## Will result in ca. 2.7
...
Problem is that also the dimensions (topleft etc.) are scaled up so the substack is "out of reach".
Best
Klaus
-
- Posts: 115
- Joined: Thu Mar 06, 2014 9:29 am
Re: Substack Launched Wrong Size after Mainstack Fullscreene
Definitely sound via my phone and laptop. That's strange. Maybe just try turning it to 11 instead of 100? hah I've got more stuff online, but it's mostly just home demos. https://thevanvons.bandcamp.com/ Would love to play live again, but I don't really know anyone yet here in Liverpool. Been moving a lot lately and, believe it or not, my garage bands don't tend to follow me across the world.Klaus wrote:hmmm, sure there is sound in the moive? Cranked my volume up to 100, but no sound at all?
I think basically the lesson I'm learning is that the livecode engine is meant to outsmart my scaling--it's definitely more functional that a whole app, including substacks, undergo uniform scaling on most occasions. I'll probably just work on object resizing then in a maximized window, as it's likely not great form to open an app in fullscreen on desktop anyway.
Re: Substack Launched Wrong Size after Mainstack Fullscreene
Hi theotherbassist,
Yeah, LIVE it the thing! I am a live-man, too, but also still looking for fellow musicians here in Osnabrück, where I moved to about 2 months ago.
Best
Klaus
sorry, sure there is sound, my fault (stupid setting on my side), now I can hear it!theotherbassist wrote:Definitely sound via my phone and laptop. That's strange. Maybe just try turning it to 11 instead of 100? hah I've got more stuff online, but it's mostly just home demos. https://thevanvons.bandcamp.com/ Would love to play live again, but I don't really know anyone yet here in Liverpool. Been moving a lot lately and, believe it or not, my garage bands don't tend to follow me across the world.Klaus wrote:hmmm, sure there is sound in the moive? Cranked my volume up to 100, but no sound at all?
Yeah, LIVE it the thing! I am a live-man, too, but also still looking for fellow musicians here in Osnabrück, where I moved to about 2 months ago.
theotherbassist wrote:I think basically the lesson I'm learning is that the livecode engine is meant to outsmart my scaling--it's definitely more functional that a whole app, including substacks, undergo uniform scaling on most occasions. I'll probably just work on object resizing then in a maximized window, as it's likely not great form to open an app in fullscreen on desktop anyway.

Best
Klaus