I'm trying to develop a small Windows/Mac/Android multi-tabbed app from the same code base - and its not going very well. It of course works fine with Windows and mostly with Mac. The issue is getting things to fit properly and scroll in and out of view on Android, with a phone or tablet and in both orientations. I am trying to use TFlowControl to flow four TPanels of controls within a TPresentedScollbox. This works somewhat fine on Windows (when the window size is changed at runtime). The TPanels flow and the scroll bars turn on and off, however not based on whether the the flowed panels fit - seemingly based on the original design size of the client area. In the Mac version, the controls flow the same as Windows, but the scroll bars of the TPresentedScroll box do not show at all. In Android, the behaviour is the same as Windows except that in landscape mode when scrolling down, you get to a certain point and POOF, the whole tab content just disappears. I see the same behaviour with the size of the scrolled area - it does not follow the parent client area so the scrolling area is wider than the flowed content. Then on Android on portrait mode, the content of a TPanel deos not fit in the available width, so I try scaling the TPanels down a bit. That works, but the TFlowPanel logic flows and spaces the panels based on the original size, not the scaled size?? Same behavior on Windows. Am I finding bugs? Or am I expecting too much of these fancy Firemonkey components? Am I using the wrong components to scroll things within a small phone/tablet screen? Any advice is welcome as my first FireMonkey experience (from a long time VCL developer) is so far not a good one. --- Dave
↧