Jump to content

sjordi

Members
  • Content Count

    164
  • Joined

  • Last visited

Everything posted by sjordi

  1. sjordi

    Interbase VAR Licence and Demos or Free Versions

    To me everything is said here: no-one could forecast the sales. I always found the VAR agreement totally imbecile. Handing out $5K upfront in prevision, that is rollbacked to the next year, etc is so cumbersome. And some freelance developers can't afford this. That's why a one-time payment with then royalty free distribution is, to me, the only way to go. And unlike what you say, if you contact sales, no, you won't have a clear picture of the future, it's always confused, blurred, and it always gives the feeling that prices and conditions will vary depending on the customer. Doesn't make you feel confident. Leaves you with a feeling that you are just a cow being milked against your will...
  2. sjordi

    Interbase VAR Licence and Demos or Free Versions

    Me too when developing Windows apps. NexusDB is great but is not available for cross-platform apps. That's very unfortunate. I'm also against pay as you go solutions and think that the VAR program is pretty obscure. For single developers, you need to know the costs in advance, you have no way to determine how successful an app will be. Could be 10 users or 300k users. As a single developer, I want to pay a fixed price and then have the freedom of royalty free distribution, just like NexusDB. For cross platform, I switched to SQLite, even if not as powerful as Interbase, but it also has a much much much smaller footprint that IB... even if this is a selling point for them to be small...
  3. Hi all, Just spent 3 days pulling my hair trying to understand why a list view is crashing each time I remove the grouping option for iOS. You know, if you set the ListView.ControlType to Platform, add FillHeader + FillBreak in Visual Binding (with custom format as "SubString(%s, 0, 1)"), on iOS you get your list displayed with Alphabetic groups and the nice vertical Alphabet index on the right to quickly navigate in the list. Works fine. Now if I sort my list using another non alphabetical parameter, I have to disable that index first. So I remove the visual binding to the list Headers. LinkListControlToField1.FillBreakCustomFormat := '' ; LinkListControlToField1.FillBreakFieldName := '' ; LinkListControlToField1.FillHeaderFieldName := ''; LinkListControlToField1.FillHeaderCustomFormat := '' ; Problem is that it crashes each time (also on Android), telling me that the value I pass is "out of range". It's fine on Windows and macOS. Now I think I found the reason... if I set the ListView.ControlType to "Styled" instead of "Platform", everything is fine, no crash (but no index either on iOS). As a workaround, I actually switch the ControlType to Styled, remove the links, and set it back to Platform. Of course it's not elegant. Could someone try the attached project and tell me if it crashed too on your side: iOS, iPadOS? The db is test.sqlite and should normally be deployed to your app. As-is, it should work. If it works, then try to comment out ListView1.BeginUpdate ; ListView1.ControlType := TControlType.Styled ; and ListView1.ControlType := TControlType.Platform ; ListView1.EndUpdate ; in the TForm1.ToolBar1Click procedure. Does it crash now that you stay in Platform mode instead of Styled? Any idea if I'm doing something wrong or if this is a bug, in which case I will open a bug report at QC (Embarcadero) Thanks for your help. Steve ListIndexed.zip
  4. sjordi

    ListView styled/platform bug?

    Another one. If ControlType =Platform, then OnItemClickEX always return 0,0 as touch coordinates... Looks like the "Platform" type is poorly implemented. https://quality.embarcadero.com/browse/RSP-38364
  5. sjordi

    ListView styled/platform bug?

    Bug case opened https://quality.embarcadero.com/browse/RSP-38354
  6. sjordi

    Parnassus Bookmarks for Delphi 11 Alexandria?

    Both bookmarks and navigator show an error at install time before restarting the IDE. Just once. But once installed, everything is smooth. I also have GExperts, Deleaker installed and everything seems to cohabit pretty well.
  7. sjordi

    ListView styled/platform bug?

    Thanks for trying. I'm opening a bug report It seems that even if you don't remove any kind of binds, but just update the database content, it is enough to have it crash. Any kind of dataset change would do...
  8. sjordi

    Do you need an ARM64 compiler for Windows?

    ARM would be cool for some Linux distributions, for robots, some Nvidia distributions, etc... Embedded systems are sometimes in Ubuntu ARM and it would be cool to be able to deploy for them.
  9. sjordi

    Request for advice: FireMonkey and Frames

    @Mavarik offers a nice solution. I use TFrameStand too. The advantage here is that you can create the frame only when you need it, no other one is created before being used. And it's released once you leave it. The advantage of Maverick solution is that you can switch the appearance of the form at design time between Windows, mac, iOS and Android. This is not possible with Frames... But I have no problems using stands.
  10. did you first erase all entitlement files before deploying? I use Delphi 11.1 and iOS SDK 15.4 without problems
  11. Are you using a database in your app? If it is not correctly deployed to the iOS device, it will close right away... You have to place it in specific locations and make the app know where to find it.
  12. sjordi

    Tag editor?

    Hi, Before I start trying to create one myself, does anyone here know an FMX component to use tags with add, delete, move functionalities. Something looking like (a little cross to delete next to each tag text would be nice) or from this forum Thanks for any help. Steve
  13. sjordi

    Tag editor?

    Dang! I have FNC UIPack... but I didn't check "list"... only "tag" or whatever close to this... I knew I saw this somewhere. Thanks...
  14. Hi all, A generic question. I'm deploying my apps with an embedded SQLite DB. Each time I compile/deploy, that existing on device DB file is overwritten by the default one. It's fine for development. But how do you actually proceed if you want to deploy an update? If a user has the app already with personal data, I don't want her/him to lose that data. Testing whether the DB already exists is not possible since it's deployed each time within the new binary. One way would be to have all the code to check whether the DB exists. If not, programmatically create it and fill it with sample data. If it does, just check its version and apply possible structure upgrades? But it feels like this would embark a lot of code that may not really be useful. How do you guys deploy news versions of your apps without overwriting exists DBs? I especially think about iOS and Android devices. Thanks for any light. Steve
  15. sjordi

    Deploy without overwriting the DB?

    ok, I think I faced a border effect... I copied the System.StartUpCopy from here and pasted it into my IDE. Didn't work. Some extra characters? No idea. Then, I erased it, typed System. and saw StartupCopy in the completion list, selected it and still, the IDE was complaining, not even possible to compile. Then I typed it in manually and it was fine. Just tried to redeploy my app and I correctly kept my actual data. Cool Thanks all. Steve
  16. sjordi

    Deploy without overwriting the DB?

    Actually, I don't find it. It's not known from the compiler, and I have no trace whatsover of any file that looks like it besides a DCU file... but not seen I'm under Alexandria... Docwiki at Embarcadero doesn't reference it either... nor does the help... I think I'm missing something.
  17. sjordi

    Deploy without overwriting the DB?

    Wow, never ever encountered this! Thanks a thousands I'll investigate this a bit further more, but it looks like it does exactly what I need... Thanks a lot.
  18. sjordi

    ListView: click on checkmark only?

    Hi In a TListView, is there a way to know whether we clicked the checkmark (accessory in a dynamicappearance) ? The OnClickItem is fired when we click anywhere in the List Item. Under VCL there were a GetItemAt(X,Y) function to test whether we were on the check mark itself or not. It doesn't exist in FMX. I'd like to be able to put my own icon as a checkmark and turn it on / off only when clicking (or tapping with the finger) only in that checkmark area, not by clicking/tapping the full item itself. Any way to achieve such a thing? Thanks for any idea Steve
  19. sjordi

    ListView: click on checkmark only?

    Nope, didn't find the Arlésienne 🙂 It looks like the OnclickEx part works fine as it also allows to react to a click on the item (outside of the checkbox). I'm moving forward with this for now, but can definitely refactor later on. I had your blog article in my personal ressource wiki and didn't see it ... (no comments)
  20. sjordi

    ListView: click on checkmark only?

    Thanks Mr ListView specialist !!! Still in Arles here! It works fine actually, I didn't find any limit so far, but I'll check your blog. I'm always learning a lot from others, and especially from you... My app is fully MVVM and decoupled mostly from the GUI so trying other implementations rarely break anything. I checked your demos and found a lot of ListView customization, but didn't find one that check/unchecks when only the checkmark is clicked (unless you display it in edit mode but then it's not a custom checkmark)
  21. sjordi

    ListView: click on checkmark only?

    It looks like you can get the ClickEX event and get the coordinates of the click. Then check wether your clicked within your checkmark area and then respond accordingly. Something like this, say my glyph working as a checkmark is 44x44 and positioned at 0,0 and called "CheckIcon" procedure TForm.myListViewItemClickEx(const Sender: TObject; ItemIndex: Integer; const LocalClickPos: TPointF; const ItemObject: TListItemDrawable); if (LocalClickPos.X >0) AND (LocalClickPos.X < 44) And (LocalClickPos.Y >0) AND (LocalClickPos.Y < 44) then if myListViewItem.Items[ItemIndex].Data['CheckIcon'].AsInteger = 0 then myListViewItemItems[ItemIndex].Data['CheckIcon'] := 0 // First image in the ImageList else myListViewItem.Items[ItemIndex].Data['CheckIcon'] := 1 ; // 2nd image in the ImageList Now this seems to work on Windows, Mac, iOS, Android and Linux. Obviously that's one way to proceed. No problems with screen density differences. But if someone has a better practice, it would be great to post it here for everyone. Steve
  22. Hi everyone, Did anyone try to programmatically close the delete button when swiping on a TListView item? The only way it to click on it or on the List Item. I'd like to take an action and immediately close/hide it when the user lifts the finger... (just like swipe to immediately execute an action and release) Any idea? Thanks for any help Steve
  23. sjordi

    VertScrollBox real size?

    Hi, I'm losing my nerves on something I thought would be simple. I have TVertScrollBox aligning "client" to the main form in which I place other controls at creation time. Some of those controls are out of screen, much down there in the VertScrollBox. Now my problem is that I need to know what is the full size of the VertScrollBox containing all the controls. By full size I mean even the non-visible part that can be revealed once one scrolls down. I think I tried everything and always get the height of the visible part of VertScrollBox. I tried its ViewPort, its Boundaries, Content.Height, Content.Boundaries, etc... each time the same result: the actual visible form size. After looking around, someone facing the same problem suggested to calculate it myself while adding the controls, taking the further down one, get its vertical Y position, add its height and then I know what the height (bottom) of the VertScrollBox. It works. But I may be a purist, it looks to me to be just tinkering around like a fool. How come there is no way to get the VertScollBox FULL size at each moment ? Or is it so obvious right under my nose that I don't see it? Thanks for any light. Steve
  24. sjordi

    VertScrollBox real size?

    Damn ! Of course I found the answer right after posting. For those facing the same problem... VertScrollbox.ContentBounds.Height // no comment
  25. Hi, I would like to know whether it's possible to send a file to a specific app on iOS. First thing coming to mind is to use ShareSheet, but is there a way to bypass the form and do everything programmatically? An example, would be to have the Nextcloud app on the smartphone and on my Delphi app, create some zip files with some data inside the archives. Once a zip file is ready, I'd like to send it to the Nextcloud app (which is already identified via credentials) so it can push it on its server. All this without displaying the ShareSheet ... Any idea? Nextcloud is for self hosted file servers, my question would be the same f it would be targeting GoogleDrive, OneDrive, DropBox, etc... Thanks for any help Steve
Ă—