Page 1 of 1

Substack Launched Wrong Size after Mainstack Fullscreened

Posted: Tue Apr 26, 2016 1:11 pm
by theotherbassist
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.

Re: Substack Launched Wrong Size after Mainstack Fullscreene

Posted: Tue Apr 26, 2016 1:32 pm
by Klaus
Hi Bassplayer,
...and you make the mainstack fullscreen via any of the modes that scale it...
if you do this in the "pre-/openstack" handler of the mainstack which is in the stack script of the mainstack
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
However, I am just guessing...


Best

Klaus
Another bassplayer: http://www.major-k.de/bass :D

Re: Substack Launched Wrong Size after Mainstack Fullscreene

Posted: Tue Apr 26, 2016 3:46 pm
by theotherbassist
Ah, Klaus, I thought you must be a bassist too--the way you're always creatively improvising :wink: 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.

Re: Substack Launched Wrong Size after Mainstack Fullscreene

Posted: Tue Apr 26, 2016 4:04 pm
by Klaus
Hi theotherbassist,
theotherbassist wrote:Ah, Klaus, I thought you must be a bassist too--the way you're always creatively improvising :wink: Here's me jamming with myself if you're interested https://www.youtube.com/watch?v=8a7WQzFv-OE
hmmm, sure there is sound in the moive? Cranked my volume up to 100, but no sound at all?
Here is one of my last sessions with great guitar player Carol Knauber: https://www.youtube.com/watch?v=-wwfXG4Qzjg
theotherbassist 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.
Yes, I see, had to force quit LC a coulle of times 8), 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

Re: Substack Launched Wrong Size after Mainstack Fullscreene

Posted: Tue Apr 26, 2016 4:41 pm
by theotherbassist
Klaus wrote:hmmm, sure there is sound in the moive? Cranked my volume up to 100, but no sound at all?
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.

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

Posted: Tue Apr 26, 2016 4:47 pm
by Klaus
Hi theotherbassist,
theotherbassist wrote:
Klaus wrote:hmmm, sure there is sound in the moive? Cranked my volume up to 100, but no sound at all?
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.
sorry, sure there is sound, my fault (stupid setting on my side), now I can hear it!

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.
:D


Best

Klaus