fullscreenmode and rect of a substack on mobile device ?

Sannyasin Brahmanathaswami brahma at hindu.org
Tue Aug 21 11:28:43 EDT 2018


Wonderful discussion!


@ Bob: agreed that "from ground up" could be one approach. But i have use cases where fully response screen is need and uses case where FSM is the best decision. it not "either" or "or" using resizestack of fullScreedMode

So the "tension" behind making that decision can to set aside.

@ Richard I did not ask to a "simple" example.

"Just yesterday I delivered a UI with several hundred controls on a card, 
some quite deeply nested within groups.  But the layout did not require 
writing anywhere close to one line per object.  Some was handled in 
loops, others handled by simply grouping objects and placing the group. 
Some don't need to be moved at all because their natural placement 
relative to topleft need not change.  Others were handled by 
combinations of the above in reusable behaviors."

I want to see that e.g *as an actual stack*  - not a long explanation of how it is possible, which you have to provide that on least 6 occasion that past two year. But but I want see code!

@ Monte: 

"mobileSetFullScreenRectForOrientations to set the rects you want the stack to be for each orientation"

you mean we can actually set up several of these with the same preopenstack handler! That big news... 







On 8/20/18 3:50 PM, Monte Goulding via use-livecode wrote:
>
>> On 21 Aug 2018, at 11:32 am, Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> - In this thread we have at least half a dozen people, including two from the core team, all working together to explore various options for placing one object within a resizing method chosen for its ostensible ease of use. :)
> Hmm… I only see one response from core team and it was from me responding to your queries about when you might get an orientationChanged message and not get a resizeStack message. I did not make any recommendation about which of those handlers to do object placement in if that’s what you are suggesting. By definition if you want to script layout changes when the stack changes size doing so in resizeStack is the only place that makes any sense.
>
> If you want to use a fullscreenMode on mobile and have an app with layouts for portrait and landscape then use mobileSetFullScreenRectForOrientations to set the rects you want the stack to be for each orientation then handle resizeStack to update the layout.
>
> Cheers
>
> Monte
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode






More information about the use-livecode mailing list