Jump to content

Jean_D

Members
  • Content Count

    15
  • Joined

  • Last visited

Posts posted by Jean_D


  1. We have a small cross-platform application written in 'Delphi 12.' Within the application, we have a few lists (TListView) of various data. In order to 'filter' the data displayed within a list, we set the 'SearchVisible' property of our lists to 'true.'

     

    This works flawlessly when our application runs on an iOS device. However, when the application runs on an Android device, the user is not even able to input text in the search box. The virtual keyboard does display. But none of its inputs are displayed within the search box. As a result, the data is not filtered.

     

    Has anybody else experienced the same issue? If you did, have you found a work around?


  2. 5 hours ago, Jirka52 said:

    Try to set property StyleName to Windows. I had the same problem, I put all controls on panel, set property StyleName to Windows and now it is ok. But it was not MDI application

    Clipboard_02-16-2024_01.jpg

    Thanks for the tip. I gave it a try to no avail. Everything appears to be working fine as long as form style is not set to 'fsMDIForm.'


  3. Wanting to test the 'CustomTitleBar' feature that comes with the newer versions of Delphi, I created a small Delphi 12 application for testing purposes. To my main form, I added a 'TitleBarPanel' that I assigned to the 'Control' property of my main form 'CustomTitleBar.'

     

    If I set my form style to 'fsNomal,' I am able to change the colors of the custom title bar at design time and the bar displays properly at run time.

     

    However, if I set my form style to 'fsMDIForm,' I am still able to change the colors of the custom title bar at design time. But the bar does not display properly at run time (my custom colors are ignored).

     

    Is this normal behavior or am I doing something wrong? 


  4. We have an app for Android (originally created using the Delphi 11 but, now, maintained using Delphi 12). After a fresh install, the login process will behave properly. However, after logging out, any attempt to log back in will have the 'caret' not aligned with the 'cursor' (see below). By the way, both the username and pin are TEdit. How do I force the 'caret' to be aligned with the 'cursor?'
     

    1249962580_Screenshot_20240110-160521-Clean.thumb.jpg.cab0638ae88c924d3aa208018571e66e.jpg

     

    Then, once in a while, if we tap the username field in order to enter a new value, we get the following error:

     804556882_Screenshot_20240110-163939-Clean.thumb.jpg.af5f482a192e9ae2205485bd21e27c27.jpg

     

    Has anybody else experienced this strange behavior/error and found a way to solve it? By the way, none of these issues were present under Delphi 11.


  5. Quote

    In case you have to call RequestPermissions(), are you waiting for request_Result()?

    Yes, I was. But your solution is more elegant.

     

    Quote

    No.  It (MANAGE_EXTERNAL_STORAGE) is a permission like any other.  The user has to grant access to it.

    Since it is not defined within the 'Androidapi.JNI.Os.pas' file, I didn't think that I had to follow the same process as I did for 'WRITE_EXTERNAL_STORAGE'. How would I do that.

     

    Quote

    Are you getting any kind of runtime error about the file not being created?

    No, I am not getting any error. The application runs 'properly.' The issue is that, instead of storing the 'zip' file within the external SD card, it saves it within the internal 'Documents' folder. Since I am running out of space 'internally,' the compression does not complete.


  6. 1 hour ago, Remy Lebeau said:

    What problem are you having with it, exactly?  Can you be more specific?  What does your code look like that is not working?  Did you grant permission to your app to access the external SD card?  Do you have code that prompts the user if permission has not been granted yet?

    Did you grant permission,? Do you have code that prompts the user if permission has not been granted yet?

     

    I believe that I do:

    procedure TForm_Main.request_Result(const aPermissions: TClassicStringDynArray; const aGrantResults: TClassicPermissionStatusDynArray);
    begin
      v_PermissionGranted := ((Length(aGrantResults) = 1) and (aGrantResults[0] = TPermissionStatus.Granted));
    end;
    
    procedure TForm_Main.request_Permissions(aPermission: String);
    begin
      PermissionsService.RequestPermissions([aPermission], request_Result);
    end;
      v_PermissionGranted := PermissionsService.IsPermissionGranted(JStringToString(TJManifest_permission.JavaClass.WRITE_EXTERNAL_STORAGE));
    
      if not v_PermissionGranted then
        request_Permissions(JStringToString(TJManifest_permission.JavaClass.WRITE_EXTERNAL_STORAGE));

    In terms of 'MANAGE_EXTERNAL_STORAGE,' it is only defined within in the manifest file. Is that not enough?

     

    My issue is that, when I execute the following code, the 'zip' file is not created on the SD card.

    iZipFile := TZipFile.Create;
    iZipFile.Open(System.IOUtils.TPath.Combine(System.IOUtils.TPath.GetSharedDocumentsPath, 'Folder-Content.zip'), zmWrite);

     


  7. I have a Moto G6 with an 'external' SD card. Because, my device 'internal' storage is running low in space, I thought that I would attempt to write a Delphi app that would allow me to compress the content of my 'internal' Camera folder into a 'zip' archive stored on my 'external' SD card. I understand that I could use the 'built-in' Files manager app to move the files onto my 'external' SD card. But for practice purposes, I decided to try to create my own app.

     

    I am using the latest version of Delphi Alexandria (v. 11.2). I am able to access my 'internal' DCIM folder and read its content as well as to add files to a 'zip' file. However, I am unable to 'force' the saving of my 'zip' file to my 'external' SD card. Any input would be greatly appreciated.


  8. I have Delphi 11.2 Alexandria installed on a VMware vSphere Hypervisor (ESXi) 6.5 virtual machine (hosted outside of my work enviroment). I access the virtual machine via a Microsoft Remote Desktop Connection. For my iOS app I have a MacBook Air next to my PC.

     

    How do I 'connect' my 'inhouse' MacBook Air to the VM hosting my work environment in the Cloud? Is that event feasible?

     

    Any input would be greatly appreciated.


  9. When creating a small test app for Android using Delphi 10.4.1, I use a TMemo component with WordWrap set to true.

     

    When running the app, when it is time to the word wrapping to become active, the cursor jumps to the top of the memo. Has anybody else experienced this issue?

     

    By the way, the app works properly when created with Delphi 10.3.3

    • Thanks 1
×