Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all 1963 articles
Browse latest View live

Converted from Xe7 to Xe10.2 and now get strange Checkbox issues

$
0
0

Hi Guys

Just converted over to Xe10.2 but a strange thing happens when using the vertical scroll box on on of my pages, it checks and unchecks boxes as I move the page up and down. Pretty strange and can't explain why?

 

Anyone had this happen?


Using Delphi 10.2 and can't turn off "Enable runtime themes"

$
0
0

I'm using Delphi 10.2 and can't turn off enable runtime themes. I uncheck the option in the Project Options -> Application page, then click the OK button, then re-open Project Options, and the box is checked again! What am I missing? How do I uncheck this option?`

Fatal error F2582 unable to load DLL compllvm.dll

$
0
0

I installed Delphi Tokyo,

installed Platform Android through the platform assistant, attached a Samsung Tab E to the computer, it is seen by Delhi.

But on compling to the Tab it gives a Fatal Error F2582, unable to load DLL compllvm.dll

Searched for it on my harddisk but is not to be found.

 

Any suggestions?

 

Thanks

Rob Nowee 

 

Authenticate users via fingerprint scan

$
0
0

Hi,

Is it possible to develop a custom application that can authenticate users via fingerprint scan?

Best regards.

Manoel Pedro

 

"Not responding" message when accessing drives.

$
0
0

I have a routine that accesses a large number of drives on my system. Sometimes Windows fires up each drive before proceeding with the app. On occasion,  I get a message "Not Responding" in my app title bar, but this eventually clears and the app runs fine. I would like to prevent the warning appearing, as it will confuse users who may think a crash has occurred. It is not a permanent occurrence. I presume there is a way to intercept the error message generator for this specific error only?

Delphi Tokyo ShowShareSheet has degraded performance?

$
0
0

I'm trying Delphi Tokyo.
I found a problem with the ShowShareSheet feature on Android. With large images (2528x1978) before viewing the list of apps that can serve it takes up more than 20 seconds.
I do not have this problem with Delphi Seattle that normally takes 3 or 4 seconds for the same image.
I've tested with a Samsung Galaxy Tab 3 and Android 4.4.2.
The following code is a modification of the CameraRoll example. I added a tbutton to share the image and modified the tlabel to view the image size.

 

//---------------------------------------------------------------------------
// This software is Copyright (c) 2015 Embarcadero Technologies, Inc.
// You may only use this software if you are an authorized licensee
// of an Embarcadero developer tools product.
// This software is considered a Redistributable as defined under
// the software license agreement that comes with the Embarcadero Products
// and is subject to that software license agreement.
//---------------------------------------------------------------------------

unit uMain;

interface

uses
  System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, System.Diagnostics,
  FMX.Types, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, System.Sensors, FMX.Media,
  FMX.Objects, FMX.MediaLibrary.Actions, System.Actions, FMX.ActnList, FMX.Graphics,
  FMX.StdActns, FMX.Controls.Presentation;

type
  TCameraRollForm = class(TForm)
    btnPhotoLibrary: TButton;
    imgPhotoLibraryImage: TImage;
    alGetCameraRoll: TActionList;
    TakePhotoFromLibraryAction1: TTakePhotoFromLibraryAction;
    ToolBar1: TToolBar;
    Button1: TButton;
    ShowShareSheetAction1: TShowShareSheetAction;
    LB_ImgInfo: TLabel;
    procedure TakePhotoFromLibraryAction1DidFinishTaking(Image: TBitmap);
    procedure ShowShareSheetAction1BeforeExecute(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  CameraRollForm: TCameraRollForm;

implementation

{$R *.fmx}
{$R *.LgXhdpiPh.fmx ANDROID}

procedure TCameraRollForm.ShowShareSheetAction1BeforeExecute(Sender: TObject);
begin
  ShowShareSheetAction1.Bitmap.Assign(imgPhotoLibraryImage.Bitmap);
end;

procedure TCameraRollForm.TakePhotoFromLibraryAction1DidFinishTaking(Image: TBitmap);
begin
  //  Value set to get hiresolution image
  //    TakePhotoFromLibraryAction1.MaxHeigth := 8192
  //    TakePhotoFromLibraryAction1.MaxWidth := 8192
  //  Assign the image retrieved from the Photo Library to the TImage component.
  imgPhotoLibraryImage.Bitmap.Assign(Image);
  LB_ImgInfo.Text := 'ShareSheet Sample: Image Info  H x W = ' + imgPhotoLibraryImage.Bitmap.Height.ToString + ' x ' +
    imgPhotoLibraryImage.Bitmap.Width.ToString;
end;

end.

10.2 Tokyo false keyboard size

$
0
0

On android devices in virtualkeyboardshown event the keyboard bound is incorrect with 10.2 Tokyo. So the scrollableform demo doesn't work. On my test device it says the rect top is 508 and the bottom is 533 (533 seems to be correct, screen scale is 1.5 and screen height is 800). Is there another way to get the virtual keyboard size?

Time Sync with TIdSNTP

$
0
0

I am seeing dates far in the future (2025) when using TIdSNTP over a long period of time and with time.nist.gov.  Has anyone seen anything like this?  I am trying to determine if this is TIdSNTP, my app, or nist having an issue.

Thanks in advance.

Rex


Ribbon Quick Access Toolbar items visibility issue

$
0
0

Ribbon Quick Access Toolbar items icon are not visible in C++ Builder while it works fine in Delphi:

C++ Builder Demo project:

Delphi Demo project:

Component Accessibility for an RPA Application

$
0
0

We are currently working on Delphi 2007 however we plan to upgrade to the latest version sometime next year. We are currently exploring the option to implement an RPA (Robotic Process Automation) solution that can interact with the application developed in Delphi 2007 we have at our company.

Reading few bogs I identified the below

“The VCL itself does not natively implement any support for MSAA. Windows provides default implementations for standard UI controls, which many standard VCL components wrap. If you need more MSAA support than Windows provides, you will have to implement the IAccessible interface yourself, and then have your control respond to the WM_GETOBJECT message so it can return a pointer to an instance of your implementation.”

 

Having implemented the MSAA support for the application, we were able to capture the control names in Blue Prism (RPA Application we are working on). However, it was identified that that control name appears in the Parent Name Property rather than the Child Name Property. See attached Image.

The code to implement the accessibility was followed from the below link.

Creating accessible components in Delphi:

https://stackoverflow.com/questions/16320914/creating-accessible-ui-components-in-Delphi

 

 

Few questions on the above

1) Does the latest version of Delphi support MSAA?

2) How can we have the control name available in the Child Name Property rather than the Parent Name Property?

 

Properties Image

winapi problems with 10.2

$
0
0

I have an issue with the 10.2 Trial edition.  I am able to compile a C++ Release Build but cannot compile a Debug Build.  I am getting numerous E2257 errors in Winapi.Windows.hpp and Winapi.ShellScaling.hpp, and E2238 and E2344 errors in SystemRtti.h.  I reviewed https://community.embarcadero.com/article/articles-support/171-rad-studio/16436-issues-with-winapifamily-h-and-other-header-files-after-installing-c-builder-10 for a previous similar problem with 10.1, but verified all of the eight header files are present and updated after the 10.1 hotfix.  I had a similar problem when I updated to the 10.2 Starter but resolved that when I reloaded my previous project file.  That is not working for me now.  So, if anyone can help me resolve the winapi problems I'd also appreciate it.  FYI, I did a complete manual uninstall of the previous Starter editions before installing the Trial edition, so hope that helps.  Perhaps there are still some old files or registry keys that are affecting the clean execution of 10.2 Trial for me.

 

git integration - ssh protocol

$
0
0

Hi

does anybody know if I can work with rad studio and git repositories using ssh protocol ?

 

Delphi 10.2 Tokyo: Components do not show some images from TimageList on Android

$
0
0

I tried to compile and run original sample application on Android tablet - “ListVieImageIndex”. I found out that some rows of TlistView did not show any picture. Then I created simple program with several buttons, which give image from TimageList and behavior was similar – some buttons were without image.

Same applications compiled in Delphi 10.1. Berlin work well.

Next problem with Delphi is caused by version of Android. It is not possible on Android v.7 to debug a program, because after installation on Android and start process "launching", is debugging stopped with error: “run-as: Could not set capabilities: Operation not permitted”.

Doubt about fmx

$
0
0

I fill a listview of this two forms within a loop

 

1.

LItem := ltvProduto.Items.Add;

lDescricao := LItem.Objects.FindObjectT('Text1');

lPreco := LItem.Objects.FindObjectT('Text2');

lBarra := LItem.Objects.FindObjectT('Text4');

lImg := LItem.Objects.FindObjectT('Image3');

lDescricao.Text := DM.Produto.fieldbyname('prod_descricao').AsString;

LItem.Tag := DM.Produto.fieldbyname('prod_codigo').asinteger;

lPreco.Text := formatfloat('#,0.00', DM.Produto.fieldbyname('prod_precovenda1').asfloat);

lBarra.Text := DM.Produto.fieldbyname('pf_descricao').AsString;

 

2. 

with ltvProduto.Items.Add do

begin

    Data['Text1'] := DM.Produto.fieldbyname('prod_descricao').AsString;

    Data['Text2'] := formatfloat('#,0.00', DM.Produto.fieldbyname('prod_precovenda1').asfloat);

    Data['Text4'] := DM.Produto.fieldbyname('prod_codigo').AsString;

end;

 

My listview is like DynamicAppearence, how do I fill in the header?

10.2 Tokyo BLE Framework fails to discover devices on Android, works on 10.1 Berlin.

$
0
0

I am creating a separate entry for this from replies I made on a similar entry.  This one has to do with the BLE framework and not the BLE component.  

After changing to 10.2, BTLE discovery is not working anymore in Android.  I am using the framework and calling

System.Bluetooth.TBluetoothLEManager.StartDiscovery

It does return TRUE and the OnDiscoveryEnd event does fire, but no devices are found.  I have used the HeartRate sample and it does find the BTLE device, but it is using the BTLE Component, which will be a major change and may not even work.  I am pretty sure I have to use the Framework, since part of my app is in a service and UI is not allowed in a service.

Update 1:On a different computer I have installed 10.1 (update2) and 10.2 (No Hotfix).  No additional options were installed on either one except what was available in the installation menu.  So they are clean installations.  Win32, Win64 and Android were installed.  On the10.1 compiler the BLE project complies, installs and runs, finding all available BLE devices.  Using the exact same project in 10.2, the project complies, installs and runs, except it does not find any BLE devices.  The OnDiscoveryEnd event does fire, but it returns no BLE devices.

Update 2:

I have installed the Toolchain HotFix for 10.2 and it still will NOT discover any BLE devices.  I then installed the 6/23/17 Android patch and still will NOT discover any BLE devices.  Will be filling an issue report in the quality central now.

 

delphi seattle, iOS simulator run, can't load devToolsFoundation

$
0
0

Hi.

I'm trying to set up compiling an app for iOS using the iPhone 5 simulator. I am running Delphi 10 Seatle on a Windows 10 machine, and the X-code on a Mac with macOS Sierra 10.12.5. X-code is up to date, version 8.3.2.

I have PA server 8.0.1.52 tested running and connected. I have created an SDK. I have X-Tools running with the simulator.

When I click the run with debug command in the IDE I get the error "Can't load devToolsFoundation"

If I click the run without debug command in the IDE I get the error "Unable to launch process on [ip] using the parameters from the iOS profile. Can't load devToolsFoundation"

The app will compile as windows 32 and 64 bit, and also for Android.

I have no idea where to go from here.

Thanks in advance

New installed components not shown in tool palette

$
0
0

Hello,

I have C++ Builder 10.1 Berlin SP1 on Win10Pro with newest updates and I have the problem that components for e.g. WinSoft's Camera component not available in the tool pallete.

But the setup seems to be good.

What can it be?

Best regards and thanks in advance,

Lutz

TMultiView exception

$
0
0

MultiView has a big problem in Win32: if I use TMultiView in popover mode, when the first time popover appears all runs well; the second time it generates an exception and popover doesen't appears.

Step to reproduce:

1. create a panel (this will be the target panel)

2. cerate a TMultiView and set Mode = Popover

3. cereate a button (this will be the master button)

4. Click master button

5. all runs OK!

6. close popover

7. click master button

8. EXCEPTION!!!!!!!!

 

Best regards

 

Emanuele

Missing button in file dialog "Filter editor" at design time

$
0
0

At design time "ok" button doese't appears when I edit Filter options.

Windows 10

!!!

RAD server apache installation

$
0
0

Hello,

I'm trying to deploy Rad Server 10.2 under apache on linux.

I installed Interbase xe7 and register my Rad server licence.

 When running EMSDevServerCommand it works correctly I can can access default ressources and a custom ressources.

 

But when i try to access EMS ressource throug apache i get a message

{"error":"Resource not found: \/version","description":"The request does not identify a known application, resource, endpoint, or entity"}

This message tells me ems-server is running as this outpout comes from ems but it seems it is not able to find any ressource.

Does anyone have an idea ?

 

Thanks

 

Viewing all 1963 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>