Jump to content

sjordi

Members
  • Content Count

    209
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by sjordi

  1. sjordi

    Scrollable TGridLayout question

    Hi all, After three days googling and reading about the same question... it looks like I didn't find a valid answer. I have to display glyphs in a TGridLayout, because I create those glyphs dynamically. Each of them represent either a folder icon or a file icon. I can click on them and respond the way I want. Problem is that I need my GridLayout to scroll vertically when I reach more rows than displayed on screen. For this I resize the layout taller than the form's height. On desktops, it's fine, I can click all my glyphs and the scrollbar appears to scroll up and down when I have more rows than the form's height (macOS, windows, Linux) Now on mobile devices it's another story. I think it has to do with HitTest that captures the click/tap on the glyph. So when I want to scroll the layout, nothing happens. If I turn HitTest to false for each glyph, then I can correctly scroll but I can't click the glyph anymore. The only way to still be able to click and to scroll is scrolling from outside the layout, on the very right edge of the screen, but it's not intuitive. I think I have tried all HitTest combinations combined with all Touch>InteractiveGesture>Pan=True|False to no avail. Tried using TImage instead of TGlyph. Same thing Just in case it's useful, I'm placing that TGridLayout in a TFrame. So I have also moved the OnClick event from the Glyph/TImage to the main GridLayout itself. Same behavior. My guess is that it's either responding to a Click/Tap or a scroll gesture, but can't do both... Still, there are plenty of apps doing this. The Delphi examples provided don't use a TGridLayout unfortunately. Except the ScrollableForm example though: it works. But I can't seem to figure out how the hell I can reproduce this. You can click a control and still scroll the form while pressing the control and dragging. It would correctly respond as a click/tap when not scrolling. My config: TFrame > TVertScrollBox > TGridLayout [> TGlyphs] Did anybody here practice with GridLayout and be able to click any of the grid component AND still be able to scroll the grid on mobile devices? Thanks for any clue. Steve
  2. sjordi

    Scrollable TGridLayout question

    Just for those facing the same problem... If I set the TVertScrollBox on a TForm, it works perfectly. One can both scroll and click on controls. It seems that the problem is when the ScrollBox is in a TFrame. I'll tinker a bit with this and let you know if I come up with a solution... -- EDIT - SOLVED -- Yes it's the case. I now have set my TVertScrollBox into the main TForm. Then when I dynamically add a Frame, I set it with the VertScrollBox as its parent. Now everything works fine. I can click my controls and they respond, and if I click on them and drag up and down with my finger, they do scroll. Technical note: I use Andrea Magni's TFrameStand to do this. When adding a TFrameStand, you can specify the DefaultParent property as the TVertScrollBox ! Don't hesitate to come back to me for details if you hit your head on a wall too 🙂
  3. sjordi

    iOS, Metal, Bitmaps, RGB becomes BGR?

    Did you try to move the metal initialization into the .dpr file? I think it's mandatory. Something like in this example (to adapt for your need) {$IF defined(MACOS)} if TCustomContextMetal.IsMetalSupported then GlobalUseMetal := True; {$ENDIF} Application.Initialize; Application.CreateForm(TFormMain, FormMain); Application.Run; I faced several problems when in the main application, it didn't work or even produced errors. Someone here told me that, according to the documentation this has to be set into the DPR file.
  4. sjordi

    Scrollable TGridLayout question

    Hi, Well, this would make it very laggy and difficult to scroll naturally like the platform does natively. But I'm sure it's just a matter of properties. I'm going to deeply study the ScrollableForm example tonight as this one works naturally without extra tricks.
  5. sjordi

    Application to generate all cross platform images

    Unfortunately I think it's a macOS only command On Linux, something close to it is imagemagick A quick google search didn't really result in finding something for Windows.
  6. sjordi

    Application to generate all cross platform images

    I do this myself on my Mac. I generate the largest one 1024x1024 and then run this script. It's easy to adapt when a new resolution shows up. generate [path\]iconname.png It will create all required icons for iOS and Android in the generated subfolder generate.sh
  7. sjordi

    Create a bitmap of selected control?

    Yes with fingers, that might be another challenge. I hope to have some testing time over the week-end and let you know
  8. sjordi

    Create a bitmap of selected control?

    Someone posted this example in the German Praxis forum, and it seems to work. I didn't try it yet on mobile devices though. ListViewItemDrag.zip
  9. sjordi

    Create a bitmap of selected control?

    Thanks both. I'll try the demo and your code Serge. Hopefully works as expected... I'll post the results back
  10. sjordi

    IOS 15 suppoort

    After I upgrade iOS I have many 3rd party apps that won't launch with the same error message. Each time I say "Oh no! I need them!". I uninstall them and re-install them and they just plain work without anything done differently.
  11. sjordi

    Free SQLite -> Interbase tool?

    Hi, I'd like to test drive Interbase ToGo for perf compared to my current SQLite DB on mobile apps. In real world. Does anybody know of any free tool that can convert to and from Interbase <--> SQLite? I have TMS Data Modeler, but it doesn't transfer data. Any clue would be welcome. Thanks to all Steve
  12. sjordi

    IOS 15 suppoort

    Yes I found that XCode being upgraded from the AppStore is sometimes, not always, a pain, taking hours to finalize the latest 2%. But it always eventually fully upgraded. Now it's unknown why it takes so much time, not being related to a relatively quick download, it's really the upgrade process that seems screwed.
  13. sjordi

    RAD Studio 11 Alexandria is now available

    It looks like it's working now to install... they probably solved the license problem on their side. Just launched it and it went through without problems. I'm not presented with the platform selection install dialog box. Good!!!
  14. sjordi

    RAD Studio 11 Alexandria is now available

    ha ha, no! Let's blame this on me alone 🙂
  15. sjordi

    RAD Studio 11 Alexandria is now available

    Borland is not dead!!! In a lot of people's own History anyway. I owe Borland (and Ph Kahn) my entire career https://www.linkedin.com/posts/stephane-jordi_tiltsoft-blog-about-life-technology-development-activity-6738446778732949504-OT18
  16. sjordi

    RAD Studio 11 Alexandria is now available

    Worse for me. The 11 version IS listed but to no help. Remove it, blank, add it. Says ok. But then complains about needing a valid license (copy/pasted from the My Embercadero portal, so no typo)
  17. sjordi

    RAD Studio 11 Alexandria is now available

    Same for me. I have a clean Windows install, no previous version installed. No license file (.slip files) anywhere on the disk. The license portal shows Rad Studio 11 Enterprise as Active and Registered. No way to install it. Always telling me I need a valid license. The Advanced > Update, Remove, Add again options have no effect besides making me lose my time (in any order or sequence). I mean... c'mon, just handed 2'200USD to upgrade and can't install.
  18. sjordi

    Passing docs between apps?

    Hi all, I need my app to be able to receive docs sent from other apps on mobile devices. I guess that you have to use the Share option on any 3rd party app and then send it to my Delphi app... In a way, it's a manner of replacing drag&drop from the desktop. Anybody knows whether there are documented guidelines on how to send documents to a Delphi app on mobile devices? The share mechanism (I guess) has to be able to list my app as a recipient. How do we make 1- the Delphi app available as a recipient (seen as such by other apps) 2-how do we trigger (react) when the Delphi app receives the document? Thanks for any guidance if you already tinkered with such approach! 🙂 Steve
  19. sjordi

    Passing docs between apps?

    Thanks it looks like this is the mechanism. Got some info for iOS too https://blog.grijjy.com/2018/11/15/ios-and-macos-app-extensions-with-delphi/
  20. I did not have that for each character but each time I was entering an editable field.
  21. @Dave Nottage I think that I mentioned this to you when you were testing Memorizer... I doubt that we can do anything about it as it seems to be iOS core behavior.
  22. I have that a lot too, but I face it in several 3rd party apps, not only delphi-written ones I think it's actually more on the iOS side that the problem stands. It's very intrusive and bothering. It's probably linked to handoff between Apple devices and one can't expect the iOS users to turn it off It's very unfortunate.
  23. sjordi

    Vcl to Fmx

    Mida does most of the work but a lot of controls won't migrate. But at least you will have a pretty good skeleton which keeps most controls with their associated names and Events, but it's far from being perfect. If you VCL forms are very complex, I think you'd better off starting from fresh with an FMX clean form: that also could be a good opportunity to re-think your forms and GUI. That's where two screens come handy: VCL on the left, FMX on the right 🙂 Now, for DBGrids, they don't exist in FMX so you should put a grid or stringgrid depending on what you display and then link it to data using LiveBindings.
  24. sjordi

    Absolute Database question

    Thanks, They just answered my question and plan cross-platform support very soon. This could be great news. I'll definitely give it a try.
  25. sjordi

    Deploy IOS app from Rad Studio

    No, as weabow said and as stated in the requirements, you need XCode and a MAC to deploy to Mac or iOS/iPadOS You can't sideload apps to Apple devices for security reasons. They need to be signed by certificates issued by Apple.
×