Code: Select all
on preOpenStack
if the environment is "mobile" then
set the fullscreenmode of this stack to "exactFit"
end if
end preOpenStack
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
on preOpenStack
if the environment is "mobile" then
set the fullscreenmode of this stack to "exactFit"
end if
end preOpenStack
You can set the size of the table cells (if I understand correctly that is the problem), and even edit them directly (or prevent them from being edited, if that is undesirable).
ajperks wrote: ↑Fri Jul 27, 2018 12:09 pmAlso I need to clarify what I am doing, why I am doing it and what on.
I am attempting to fit a fixed card size, designed for a specific desktop monitor/screen to a smartphone. ...<sic>...
...<sic>...The fact the image will be small and distorted beyond reason, is not a concern. Neither is the fact that desktop buttons rather than smartphone style controls are used. They actually work well, from what is visible so far.
Once I find what works, I can create a new program that interfaces properly.
...<sic>...The Phone/tablet component is for viewing and interacting, like you might with a Facebook App, but the desktop component provides the design and creation of data that is not practical on a small screen, touch device.
OK, The Rectangle method works well for the stack, but I cannot resize the card the same way, so this is not a complete solution.
The fullscreenmode and options does not work at all, for me. It stays in the same location and size as the stack is saved in. Dictionary does not explain why it fails. No solution here.
Any more ideas?
The little poorly written demo I posted scales windows in the way it looks to me like he is looking to do (minus font adjusting, etc., which should be easy enough to adjust), although I have no way to test which of the lower scales would look on anything mobile, when I was testing it I used a vm and set the resolutions to verify it "looked" right.I have tried other things, but scalefactor of stack seems to work perfectly for a set ratio
Since this is only intended to test functionality and appearance doesn't matter, I'd do this:perhaps you could give him an example of how to use what your talking about to achieve his goal?
Code: Select all
on preOpenStack
if the environment is "mobile" then
mobileSetAllowedOrientations "landscape left,landscape right"
set the fullscreenMode of this stack to "exactFit"
end if
end preOpenstack