I was mistaken on the show/hide thing. The controls were behind the browser the whole time.
On Sun, Aug 19, 2018 at 9:55 PM, Brian Milby <br...@milby7.com> wrote: > Line 14 is required on iPad. Otherwise the controls stay where they > originated (behind the browser). There is really no need to hide the icons > anyway though... they will be below the physical screen when in landscape > mode. That saves 2 lines :) > > On Sun, Aug 19, 2018 at 9:49 PM, J. Landman Gay via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> On Android, hiding and showing a group works as expected, I don't need to >> loop through the controls to show them. At first I thought they weren't >> being drawn, but in fact the whole group was below the bottom of the stack. >> -- >> Jacqueline Landman Gay | jac...@hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On August 19, 2018 6:23:00 PM Brian Milby via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> >> I did figure out that within preOpenCard, the reported stack rect is still >>> the dimensions of the saved stack file (at least on iOS). There is also >>> the detail that when you hide a group, it sets all of the objects to >>> hidden >>> which has to be undone in a loop. I've worked out moving the group and >>> the >>> background grc, still looking at the math for the widget buttons. This >>> would probably be a good place for the Navigation Bar with the option to >>> select none of the icons (PR submitted, still pending). >>> >>> On Sun, Aug 19, 2018 at 5:31 PM, J. Landman Gay via use-livecode < >>> use-livecode@lists.runrev.com> wrote: >>> >>> Android does receive orientationChanged messages. I've been tinkering >>>> with >>>> Swami's test stack, and dynamic positioning (no fullscreenMode) works >>>> fine >>>> with some effort. >>>> >>>> The footer isn't a widget, it's a group containing half a dozen >>>> controls, >>>> so they all need to be individually managed. You were right that they >>>> weren't in the correct position on Android. >>>> >>>> Swami's real project has thousands of controls over many hundreds of >>>> unique cards. I'd hate to be the one to write all the positioning >>>> scripts >>>> for that. But for a single instance where he's having issues, turning >>>> off >>>> fullscreenMode for just that card is a feasible solution. >>>> >>>> On 8/19/18 4:05 PM, Brian Milby via use-livecode wrote: >>>> >>>> You probably still want to set the rect for the footer to be sure it >>>>> lands >>>>> where you want it on different size devices. That could be done in the >>>>> preOpenCard handler (just put it where it needs to be for portrait) >>>>> >>>>> on preOpenCard >>>>> local tWidth, tHeight, tFooterRect >>>>> put the width of this stack into tWidth >>>>> put the height of this stack into tHeight >>>>> if tWidth > tHeight then >>>>> put 0,tWidth-50,tHeight,tWidth into tFooterRect >>>>> else >>>>> put 0,tHeight-50,tWidth,tHeight into tFooterRect >>>>> end if >>>>> set the rect of widget "footer" of me to tFooterRect >>>>> resizeStack tWidth, tHeight >>>>> end preOpenCard >>>>> >>>>> If the Pixel does receive the orientationChanged messages, then you >>>>> could >>>>> use my first example. That code does actually work on the iPhone, it >>>>> is >>>>> just not necessary to manage it by hand like that. >>>>> >>>>> On Sun, Aug 19, 2018 at 2:40 PM, Sannyasin Brahmanathaswami via >>>>> use-livecode <use-livecode@lists.runrev.com> wrote: >>>>> >>>>> @Brian Milby >>>>> >>>>>> >>>>>> >>>>> >>>> -- >>>> Jacqueline Landman Gay | jac...@hyperactivesw.com >>>> HyperActive Software | http://www.hyperactivesw.com >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode@lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode@lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode