Questions tagged [delphi]

Delphi is a language for rapid development of native Windows, macOS, Linux, iOS, and Android applications through use of Object Pascal. The name refers to the Delphi language as well as its libraries, compiler and IDE which is used to help edit and debug Delphi projects.

1
vote
0answers
25 views

Why I can't pass 'Child' class instance when switching parameter type from 'const' to 'var' in 'overloaded' method

MCVE: The following code does not compile with error when switching the parameter type from const to var or out in the overloaded method Train of the class TAnimalTrainer but it compiles if non is ...
-1
votes
0answers
32 views

How to properly set Android emulation's path?

They are too many answers to my question but they made me more confused rather than wiser. I installed adroid SDK with Delphi 10.3 and i updated it. The created SDK base path is C:\Users\Public\...
0
votes
0answers
38 views

Delphi - External DLL and GetProcAddress

for the first time I have to call an external DLL from Delphi. It's the DLL provided with a weight scale. First thing, I would like to connect to this scale. Here is my code: unit XOdeca; interface [...
2
votes
1answer
76 views

How to select nothing by clicking the empty background?

I have a Virtual Treeview (e.g. TVirtualStringTree). The user can select a row but it would be nice if they could also do the intuitiave thing of clicking "nowhere" to select no row Note: Of course ...
0
votes
0answers
35 views

Change a textbutton's text within a listview

I have a listview in which i have a textbutton I'm trying to change the text, but I haven't been able to achieve it. Here are some of the things i've tried so far: listview1.ItemAppearanceObjects....
1
vote
2answers
24 views

How to set download location for ftp.get with Indy Delphi component

I can successfully download a file from my ftp server using: ftp.get(chosenFile,chosenFile); Where chosenFile is simply a string with the name of the file. However these are downloaded to the Debug ...
0
votes
2answers
24 views

Set a member GlobalCEFApp->OnWebKitInitialized with function address C++ Builder

I want to build a test application with CEF4.I have installed CEF4Delphi (github.com/salvadordf/CEF4Delphi) component to C++ Builder successfuly. And I want to build the JSExtension delphi demo ...
-3
votes
0answers
48 views

Is it possible lockscreen background picture change by delphi (in windows 10)

i try to change lockscreen background by code because i write a program some kind reminder program create a picture have reminder subject i try to set that picture lockscreen background i found ...
0
votes
0answers
91 views

Installing unit into RAD Studio

I'm pretty new to programming, and I'm learning how to use RAD Studio. I want to use this unit in my project: https://github.com/OneChen/FMXNativeDraw I've downloaded whole folder called "...
0
votes
0answers
42 views

How do I generate multipart/form-data for email attachment sent via a bulk email API

I'm experimenting with sending emails through a bulk email sender via their API. The code that works at the moment to send a simple email is this (INetHttp1 is of type TINetHttp): procedure TForm1....
0
votes
0answers
34 views

Delphi IWinHTTPRequest SetRequestHeader

I am trying to send custom header values in a HTTP POST but the site I am posting to tells me they are just receiving nulls. I have tried setting the values OSName, OSVersion, ProductName, ...
0
votes
1answer
58 views

Delphi - Passing ALT keycodes to Excel

Delphi RIO - I have an Excel PlugIn written in Delphi. I am wanting to write a routine which converts cells which have multi-line contents to single line contents, basically replacing the line break ...
0
votes
2answers
92 views

How to call a Generic procedure recursively with delphi and RTTI?

I'm working on Delphi 10.2 Tokyo and facing the following situation: Assuming I have the following procedure, to verify the properties of an object: procedure TGenericUnit.VerifyProps<T>(_AObj:...
0
votes
0answers
57 views

React in TSpeedButton descandant on style change

I made a TSpeedButton descandant with built-in custom glyphs that are drawn inside instead of being taken from a ready resource. The glyphs' drawing routine is being called in a constructor, but when ...
0
votes
1answer
27 views

KBMMW ORM MetaExists(mwmdtTable) not supported

I am trying to create table in MSSQL using kbmMWORM with uniDAC connection. Below is my KbmmWTable definition: [kbmMW_Table('name:DEPT')] TDept = class private FCoGroup:string; FDeptCode:string; ...
0
votes
0answers
49 views

Delphi XE7 Developing for iOS 7+

I'm trying to compile an app for iOS using Delphi XE7. I tried to install OSX 10.13 High Sierra and XCode 7.2, but cannot compile under the iOS Simulator, as I get an error that I need to specify a ...
3
votes
1answer
101 views

Convert TByteDynArray to string

I'm working with web service and I have a problem with an invalid character was found in text content. I don't have much experience with encoding so I decided to pass the data as TByteDynArray. Here ...
1
vote
1answer
65 views

Delphi: PNG in ImageList, change color while keep alpha

Delphi. I have an ImageList (either TImageList, or DevExpress's TcxImageList) that contains PNG pictures using alpha channel. The RGB part of the picture is a black square. The alpha channel contains ...
-3
votes
0answers
49 views

Delphi Windows Services [on hold]

procedure TDSService.ServiceStart(Sender: TService; var Started: Boolean); begin FMonitor := TPBPrintersMonitor.Create(nil); //FMonitor.OnNewJob := JobNotification; //FMonitor.OnJobChange := ...
0
votes
0answers
45 views

Delphi TDrawgrid scrollbar scroll amount

I have a draw grid that I populate at run time. It has enough items to trigger the vertical scrollbar to appear. When I scroll using the mouse wheel it scrolls 1 grid row at a time. When I scroll ...
0
votes
0answers
55 views

Delphi catch Async ADOQuery Exception

I am opening an ADOQuery asynchronously, and it works as expected, but any exceptions cause the application to hang. The exception does not get passed back to the main thread. procedure ...
-4
votes
0answers
44 views

Crystal Reports XI VCL and converting to Crystal 13 with Delphi [on hold]

How I can work around Crystal Reports XI VCL for Delphi and migrate to higher version of cristal ?. They stop support for Delphi and went to .net this VCL is the last one. According to this https://...
0
votes
0answers
53 views

Delphi how to control volume using trackbar

I am using TMediaPlayer to play music and videos which works fine, but I want to control the volume using a trackbar that can slide from low to medium to high. Can someone please help me on how to ...
-3
votes
0answers
48 views

How to correctly keep TAniIndi and a ListView responsive with a thread while Querying a Database on iOS?

The following code is causing my Applicatrion to crash, if I use Synchronize(GetResult); the AniIndi becomes irresponsive. I think that the problem rallies on the way the Thread is being destroyed. ...
0
votes
0answers
85 views

How to take a photo from the webcam using the built-in button?

I have a USB-Based Camera with a Capture Button that takes a picture. However, this feature only works in a dedicated application. I think the button sends a signal that triggers an image capture ...
-3
votes
1answer
75 views

ask Delphi7 NtQueryObject and NtQuerySystemInformation

Can you explain why the Handle type "Process" has a PID / process name in Process Hacker: I've tried NtQueryObject() and NtQuerySystemInformation() but all of them don't work. There is no PID / ...
1
vote
3answers
65 views

Hide virtual keyboard in android application with Delphi 10.3

I have found many references to this problem, but I have not yet found a solution. I use the following code to hide the virtual keyboard, but it does not work. FService: IFMXVirtualKeyboardService; ....
2
votes
0answers
58 views

Delphi Indy: Suddenly experiencing 14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

I have been using Delhi XE8 VCL application Indy 10.6.2:5263 OpenSSL 1.0.2k (https://indy.fulgan.com/SSL) Windows 10 The following code was working until March 5, 2019 procedure TForm2.Button1Click(...
-5
votes
0answers
114 views

How to return a count of fields with a given value in a record?

I have a database table with the following fields : --------------------- FIELDS : | H1 | H2 | H3 | H4 --------------------- VALUES : | A | B | A | C ------...
0
votes
1answer
76 views

Delphi TZipMaster - how to catch exceptions?

I use Delphi TZipMaster to create and extract ZIP files. It works but the problem is , when something goes wrong, it won't generate an exception, it will show a message from the component itself. So ...
0
votes
2answers
81 views

How do i run a procedure on an onclick event with Dynamically created buttons, and pass variables through

This is in Delphi Pascal I have dynamical created a 2d array of buttons. I want it such that when you click these buttons, the button pressed will dissapear. (This is to make a minesweeper style game)...
1
vote
1answer
31 views

Scaling DbGrid Indicator and DbNavigator Icons on 4K display

I am using DPro Rio 10.3 on an HP Spectre x360, which has a 4K display. The indicator on DbGrids and icons for DbNavigator controls scale fine at 1980 X 1080, but are almost invisible at 4K ...
0
votes
0answers
32 views

Using TFDBatchMove for true Flat Text files

I have, successfully, incorporated a TFDBatchMove with a TFDBatchMoveDataSetReader (pointed at a TFDMemTable) and a TFDBatchMoveTextWriter to export the data in the FDMemTable to a CSV file. The ...
-2
votes
0answers
31 views

how do i parse my xml get rtncode note with delphi 6? [on hold]

how can i get the rtncode's value? <?xml version="1.0" encoding="utf-8"?><Response><func>Payment</func><Data><MerchantID></MerchantID><StoreID></...
0
votes
1answer
130 views

Can't get the same result as the Delphi code, after I exclusive-OR an address of a char array in C#

Parameters: InLong = 0, Posit = 5, and from an ASCII file TmPChar{.,STX,NUL,NUL} Delphi code Procedure TForm1.GetLongFromBuf(Var InLong : Longint; Posit : Integer; ZRepB : ZrepBuf); Var TmpPChar ...
-2
votes
0answers
46 views

Terminate Python script using Python4Delphi

I'd like to terminate a python script executed within a Delphi application. I can call quit() command but it is closing also my Delphi application without calling its destructor.
-1
votes
0answers
64 views

Android app developed in Delphi freezes after going into the background for minute or so

I'm developing a client server Android app in Delphi Tokyo. The app is working fine until i put it in background for a minute or so after which when attempting to reopen it, the interface seems ...
0
votes
2answers
53 views

Delphi 10.3 - change the sender name of received emails (JIRA server as sender) in Outlook 2016

JIRA sends notifications emails with a default sender name to Outlook 2016 clients. It is hard to keep an overview or find relevant emails based only on the sender. It is necessary for us to have the ...
-1
votes
0answers
46 views

Can TModel3D objects be segmented?

I am trying to find a way to segment a model so that I can mess around with the segments as I please. Is there any way to do segment cut? Or is there some other way to generate a model and cut it up ...
0
votes
1answer
68 views

Changing Graphics32's TImgView32's resampler kernel on the fly

I want to change resampling kernel of Graphics32's TImgView32 on the fly. However there is no visible difference. Here's the code: procedure TForm1.FormCreate(Sender: TObject); begin ImgView321....
2
votes
2answers
93 views

Using OpenSSL to Generate KeyPairs

I'm using delphiopenssl wrapper to generate .pem format key files. I'm using Generate RSA Key example to generate these keys. What I need Two days ago I was hoping to find a simple way to generate ...
1
vote
0answers
75 views

There is possibility of execute a “echo” command via ShellExecute()?

I have this following command (to create a ssh tunnel (Local) with Putty (plink.exe) ) that works fine when executed from batch file. echo y | putty -v -ssh -2 -P 22 -C -l root -pw 123 -N -L ...
1
vote
2answers
80 views

How to test if MIDAS.DLL is loaded?

I use Datasnap on Delphi 2007. In a few specific machines when the user try to open the app, he gets the 'Error loading Midas.DLL' error and the app crashes. I never could identify in what scenario ...
1
vote
0answers
32 views

How to know when the last Detail band is printing?

I have a (repeating) detail band, and attached to it is a child band: I want to have the child band hidden, until it is printing the last detail band. Conceptually it would be something like: EOF? ...
2
votes
1answer
56 views

TDBGrid Duplicating rows

I am converting some software from Delphi 5 to Delphi 10.2. We have a TDBGrid that is linked to a datasource that is link to a table. So something like this: TDBGrid.DataSource := GroupDS; GroupDS....
5
votes
3answers
197 views

How to force layered source code structure in Delphi

In our organisation we would like to force layered structure of source code. Each unit would be in certain "level" and units would be able to use only units in same or lower level. Example: Suppose ...
-3
votes
0answers
74 views

TIEdownload - save html to Tstrings, Tstream etc. (Delphi XE3)

I would like use component TIEdownload (component from package Embedded WebBrowser ) for download and save web to file. Is any possible save webpage over TIEdownload to Tstrings, Tstream? (Page ...
-2
votes
0answers
53 views

App update its self after download Delphi Rio android 7+ [duplicate]

I have an App that should be able to update it's self. The Tokyo version works fine, but not the version made with Rio. I use this: Installer procedure TFormInnstill.Install; var s:string; ...
1
vote
1answer
123 views

TJpegImage: Internal bitmap not updated after applying JPEG compression

I want to convert a BMP to JPG, compress that JPG and the put back the compressed JPG into the original BMP. However, it won't assign the compressed image to the BMP. I always get the orignal image ...
-2
votes
1answer
95 views

Why do I get an acces violation in the datamodule when nothing is happening?

I have made a data module and a button. When I send info to the data module it gives an access violation when the program is done even when nothing needs to be done. What is going wrong? I use Delphi ...

http://mssss.yulina-kosm.ru