Questions tagged [delphi]

26141 questions
1

votes
0

answer
112

Views

Delphi + iOS: how to implement UIContextualActionHandler in Delphi/FMX?

The iOS 11 SDK introduces two new UITableView methods for handling swipe actions: leadingSwipeActionsConfigurationForRowAtIndexPath trailingSwipeActionsConfigurationForRowAtIndexPath Objective-C: - (nullable UISwipeActionsConfiguration *)tableView:(UITableView *)tableView leadingSwipeActionsConfigur...
vitaliy-zh
1

votes
1

answer
432

Views

TStringGrid show (bcd) in delphi live binding

I connect TFDQuery with TStringGrid in live binding in delphi firemonkey apps. I tried to use filter in TFDQuery based on Editbox for searching purpose, and it's work just fine. but, whenever I clear the Editbox, one of my row in TStringGrid would show '(bcd)' as it's value like the pict below. what...
punk73
1

votes
1

answer
330

Views

FDPhysFBDriverLink behaving weirdly with VendorLib Path

I'm starting my first application with FireDAC and Firebird 3.0 and I'm having this weird problem with FDPhysFBDriverLink. Setting it up requires you to set VendorHome and VendorLib to get the driver link working... When I set them, the driver keeps adding '\bin\' to the end of my VendorHome path. F...
Nickolas Deluca
1

votes
0

answer
60

Views

Delphi Handle Android “Overview” button

Using Delphi Tokyo 10.2, is there a way to handle the OnClick event of the overview button (the button on the right of the android navigation bar)? I was thinking about something like the code above: procedure TForm1.FormKeyUp(Sender: TObject; var Key: Word; var KeyChar: Char; Shift: TShiftState);...
LLuca
1

votes
0

answer
1.4k

Views

Delphi Indy error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

I have been using Delphi XE Indy 10.5.7 OpenSSL 1.0.2n (https://indy.fulgan.com/SSL). When I try to execute code: procedure TForm1.Button1Click(Sender: TObject); var IdHTTP: TIdHTTP; URL, Str: string; SSL: TIdSSLIOHandlerSocketOpenSSL; begin URL := 'https://satsis.info/tv/wek/schedule_channel_3_wee...
vlad_n
1

votes
0

answer
1.1k

Views

Unable to load Firebird client library on Windows 10

Tw days ago, I installed Windows 10 build 1709 16299.192 and Embarcadero Delphi 10.2.2 Tokyo. Since I installed them, my applications can't load the Firebird client library at runtime. If I have an exe file compiled with older Windows and Delphi 10.2.2, it works fine, but every exe file compiled wit...
Master
1

votes
1

answer
250

Views

Firedac and Oracle : works at runtime but not at design time

Hello to all Stackoverflow readers. I'm trying to establish a connexion from a Delphi application to an Oracle database on my network, using FireDac. At runtime, a 'simple' : procedure TForm1.Button1Click(Sender: TObject); begin with FDConnection1.Params do begin DriverID := 'Ora'; Database := '(DES...
Mathmathou
1

votes
0

answer
437

Views

Delphi “case of” expression expects constant [duplicate]

This question already has an answer here: Why does the compiler reject a constant default parameter value with “E2026 Constant expression expected”? 1 answer TCustomAttribute - “Constant expression expected” compile error 2 answers I was porting my communication library written in C to Del...
Mehmet Fide
1

votes
0

answer
325

Views

Delphi 10 FireDAC, TFDConnection doesn't connect when program runs as a service

I try to connect to a Firebird Database, using the ODBC DriverId from TFDConnection. When my program runs as a normal application on the desktop I have no problem connecting. When my program runs as a service it will not connect. FDConnection1.Params.Clear; FDConnection1.Params.Add('DriverID=OD...
Edward
1

votes
0

answer
144

Views

How to setup two phase commit in FireDac?

Does FireDac support two phase commit transaction? If it does, how can I do two phase commit using FireDac in Delphi to perform update on two firebird database? Thanks
Kenneth Man
1

votes
1

answer
331

Views

Problems with Tethering - Delphi

good evening! I am trying to make a connection with Tethering, following the explanations of Malcon Groves (http://www.malcolmgroves.com/blog/?p=1854), however I am having the following problem: When you click Connect, App1 apparently connects, but does not display the App2 handle. App2 happens the...
sounobre
1

votes
1

answer
297

Views

FireMonkey Android - handle callback message (JHandle) of JAR object

I have a big problem for a long time - I am looking for a solution everywhere, but after really many hours of testing I can not find a sensible solution. I have a JAR library for the Zebra printer and a PAS file for it (http://aboutit.pl/MobilePrinter.zip). I need a piece of code in Delphi that will...
Insane
1

votes
0

answer
132

Views

How to convert special java interface to pascal interface?

I have those 2 interfaces public interface TransferListener { ... } public interface BandwidthMeter { ... } and this implementation : public final class DefaultBandwidthMeter implements BandwidthMeter, TransferListener { .... } How can i declare the pascal version of DefaultBandwidthMeter ? Right no...
loki
1

votes
0

answer
75

Views

An event which fires when each image or script or other item is downloaded

I would need to examine HTML into TWebBrowser control which is loading for invalid links such as the ones beginning with \\ (UNC path) (e.g. ) and strip these out or cancel loading (replace the URL with blank string for example). At the moment, when such links are found, MSHTML automatically replace...
Coder12345
1

votes
0

answer
131

Views

How to, programmatically, change the SSL/TLS support using WinInet?

Sometimes I need to deal with the 'Advanced Tab' of Internet Options to enable/disable some SSL/TLS protocols to satisfy some applications. Now I want to know if it is possible do this enable/disable programmaticaly, per application connection, these protocols. Is this possible? If yes, how?
Carlos Feitoza Filho
1

votes
1

answer
169

Views

Shellexecute equivalent for Linux as target platform

Does anyone knows the equivalent for Shellexecute command for Linux as active target platform?
Marco Carboni
1

votes
0

answer
154

Views

Using CreateFile to send PDF direct to a printer ignores bold fonts

Please bear in mind that this code is running in an ISAPI module, and we would rather not mess around with changing which user the application logs in as, so the usual way of using the Printer classes is not likely to be an option. I have the following code: procedure WriteFileToPrinter(const APrint...
Dave Nottage
1

votes
0

answer
329

Views

Using GetClass with Delphi runtime packages

I'm using Delphi 10.2.2 Toyko to develop a runtime package, but calling GetClass() in my app does not find my Form class in my package. In the package, I have the following code (just a form): procedure CreateForm; begin // Create instance of class TfmFormInPKG in Application fmFormInPKG := TfmFormI...
BennieC
1

votes
1

answer
162

Views

TOleContainer opening .tmp(word2016) documents Delphi7

we are working with Delphi 7, SQL server 2008 and MS word 2003. now we are planning to migrate MS word 2003 to MS word 2016. in our application we will load the document(BLOB field) from database and save it into .tmp file and then we will open the document using TOleContainer in Delphi7. above proc...
DelphiLearner
1

votes
0

answer
288

Views

Delphi 10.2.2 Tokyo AndroidService CreateNotification Segment Fault 11 Java_com_embarcadero_rtl_ProxyService_onStartCommandNative?

Errors out ':9EBD03FA Java_com_embarcadero_rtl_ProxyService_onStartCommandNative' My issue is that I can't seem to get my service to send a notification back to my main thread. Once I can get this working, I'll publish this on github. This is an opensource project along with using Bass Library. Deb...
El Diablo
1

votes
0

answer
149

Views

How to display image in wide color gamut under ios and android Oreo via openGL?

Ios and android Oreo support wide color gamut (color management). Via openGL how to make that my app can render bitmaps with embedded wide color profiles loaded from PNG, JPEG ? I m under Delphi I read from the android doc that we can use wide color gamut mode in OpenGL doing somethink like this (fo...
loki
1

votes
0

answer
131

Views

Doesn't display data formatted in FireDAC with SQLite in Delphi 10

I'm using TFDQuery from FireDAC with SQLite database, displaying some formatted fields and I'm having problems with 'printf' because TFDQuery doesn't display the data in the situation indicated below: // THIS WORKS ON SQLite CONSOLE and doesn't work in Delphi // With a comma separator it should show...
wBB
1

votes
0

answer
80

Views

Delphi XE7 unidac rounding issue

In my below delphi code, which is compiled in XE7 and with unidac version 7.0.2 : cAmount : Currency; cAmount := Query1.FieldByName('AMOUNT').AsCurrency; Sometimes i get very weird values in cAmount. For example if the Amount value in the database(Oracle) is 2.4,The value I'll get in cAmount is 2.39...
Binitta Mary
1

votes
0

answer
91

Views

Showing parameter/arguments with Delphi Jedi JCLDebug

When an error occurs in my Delphi XE5 application, in my exception handler I am trying to get Jedi Code Library's JCLDebug.pas to show any parameters of method calls listed on the stack. I was hoping to get this information in a similar way to the way the Delphi IDE shows this information in its Cal...
Bill Walton
1

votes
0

answer
314

Views

Is there a way to speed up TStreamWriter::WriteLine ()?

I am using C++ Builder Tokyo 10.2.2. I have a project that involves writing files that are too large for TStringList (it causes memory errors). Therefore, I created an alternate save system that used TStreamWriter. This works well, except for one small problem. It seems that TStreamWriter's WriteLin...
Anthony Burg
1

votes
0

answer
83

Views

Delphi - Duplicating Data between data sources

Delphi Seattle, Win10. I need to write a generic routine to refresh a set of tables from a single source to a single destination. The tables on both ends already exist, and the process is a complete refresh.... i.e. empty the destination table, and then copy all rows. The tables are identical, sam...
user1009073
1

votes
0

answer
79

Views

PascalScript Plugin run in another dll

I am trying to write pascalscript module in a dll to run by like loading extensions. the program seing defined objects in dll but cannot see the properties of object. I mean when I remove dll I am getting TSQLConnection not defined error when I plug dll program seeing TSQLConnection but cannot see...
serkan güneş
1

votes
0

answer
141

Views

Delphi: How to include resources into a component relative to this component

I'm trying to create a Delphi component. This component needs some images which are included with {$R *.res *.rc} in this unit. Additional I have a Delphi BPL project which contains this component. I can compile, build and install this project without problems. The problem comes when I try to use t...
Rynardald
1

votes
0

answer
331

Views

Why Multiview always behind TWebBrowser?

Using Delphi Tokyo I opened the sample firemonkey project about multiview and I put TWebBrowser. My problem when the multiview in drawer mode is open the TWebBrowser is always on top !! how to fix that ? I read this solution but I really hope there is better solution in Tokyo MultiView Android Delph...
Wel
1

votes
0

answer
93

Views

How to showmodal a form or getting value from same form in TTabSheet?

I have a form that I display in two different ways. First one is child of TTabSheet in TPageControl. I don't need to collect any data and it works fine. First way with TTabSheet.Create(APageControl) do begin PageControl := APageControl; Caption := 'Child Form Caption Info'; APageControl.ActivePageI...
Abdullah Ilgaz
1

votes
0

answer
168

Views

Delphi TMapView: Any way to turn off zoom on doubletap?

I am using a TMapView component in a Firemonkey project. I have eventhandlers that fire when a user double clicks on a marker (and also a separate event for single click). However, everytime double tap on a marker the map automatically zooms, in addition to firing my event. I've been looking through...
Mint
1

votes
0

answer
83

Views

Find out when a file is being accessed from another application

If I have a file that is opened in the memory of my application, is there any way I could find out when another application tries to overwrite it? The other app will get a sharing violation and I need to log that. If it helps in any way, I know which application tries to overwrite the file.
China White
1

votes
1

answer
261

Views

Delphi, Microsoft Access 2007 Connection String

I've been trying to create a program that creates a database, creates tables, stores information in these tables, and reads off these tables. I am using delphi and microsoft access (although I am open to using another database program if one is easier to learn). Anyway, I cam across this question an...
Jessie
1

votes
0

answer
179

Views

FMX TBitmap fastest saving of transparent image

I am scaling icons (using a software scaler algorithm) and want to cache the newly resized icons by saving them to disk while preserving transparency (the alpha channel). Calling 'Bitmap.SaveToDisk('filename.bmp')' followed by 'Bitmap.LoadFromDisk('filename.bmp')' strips the alpha channel. Calling '...
bLight
1

votes
0

answer
179

Views

How to cancel a TRESTRequest?

I'm consuming REST services using TRESTRequest. Sometimes users complain about very slow repsonses, so they want to be able to cancel REST-Requests. Unfortunately there is nothing similar to a CancellationToken that I could pass to the methods TRESTRequest.Execute or TRESTRequest.ExecuteAsync in or...
Wosi
1

votes
0

answer
146

Views

Delphi DCOM client server application, on close of server gives 'system Error 1400. Invalid window handle'

I am working on a client server application in delphi 10.2.2 where DCOM connection is used. The server application had a tlb file use which has GUID in it. When the client application is execute the server application starts and when client application is closed the server is also closed and thereby...
Tanavi
1

votes
0

answer
121

Views

“TWinControl.DoExit” not executed on focus loss by Parent change

I wonder why TWinControl.DoExit is not executed when the control loses focus because its Parent is changed. What intentional reasons might be for that? I created the following example to show the behaviour in question: CM_EXIT.dfm (yes, that's it): object Form1: TTestForm end CM_EXIT.dpr program CM_...
yberk
1

votes
0

answer
334

Views

How to change key mapping in Delphi 10.1 Berlin?

I want to change some shortcuts for speed settings in my processes. I know that there is an option to change it from Tools > Editor Options > Key Mappings menu but I want to re-assign some keys manually. Is it possible to assign them from Delphi IDE directly without using any third party?
Abdullah Ilgaz
1

votes
0

answer
126

Views

Is there a shortcut key in Delphi to go to the last modified location?

In Eclipse there is a shortcut key CRTL+Q will take me to the last modified location. Does Delphi also has such a shortcut key? Thanks in advance.
DDGG
1

votes
1

answer
271

Views

Unspecified certificate from client when using TRESTRequest

When calling one of our Internal servers with SSL URL, TRESTClient and TRESTRequest gives and error first from Exception Class ENetHTTPCertificateException and then from ERESTException with the message 'Unspecified certificate from client' I know that WinInet Api is being used behind, but here is no...
Sigurdur

View additional questions