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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Event disappears on button Style designer

I would like to create a personalized style on expander in firemonkey. But when I want to add an event on a button (I replace the checkbox by a button that I have drag and drop from palette), then ...
user avatar
0 votes
1 answer
46 views

Delphi TSpeedButton losing glyph when disabled

I have a TSpeedButton that should have 2 main statuses, one for the pressed status (down) and one when it's up. What i want to achieve is to display an icon of the glyph bitmap also when the button is ...
user avatar
0 votes
0 answers
28 views

Get current selection in WindowsExplorer from a delphi application?

i read it: Get current selection in WindowsExplorer from a C# application? IntPtr handle = GetForegroundWindow(); List<string> selected = new List<string>(); var shell = new Shell32.Shell(...
user avatar
  • 696
0 votes
1 answer
31 views

Delphi 11. Web Server. local CSS does not render correctly

I have created a simple web server using tWebModule. I have created a standalone for testing, and an ISAPI DLL for deployment to IIS. Both use the same code. I would like to use local css files in ...
user avatar
  • 13
0 votes
0 answers
56 views

How can i append record to TAdoQuery without clearing its fields?

I am using TAdoQuery with BatchOptimistic lock type. If the select command has some fields that are calculated on database server the returned fields has property ReadOnly = true, so i must change ...
user avatar
-1 votes
1 answer
61 views

How to disable MadExcept on command line?

I'm using Delphi 11 and using MadExcept to make things easier on development. I have an automated procedure to deploy my apps using DCC32. I only want MadExcept to be enabled in debug / devolopment ...
user avatar
  • 5,797
0 votes
0 answers
81 views

Getting output from a shell/dos app into a Delphi app -- Sample Windows Service -- Memory Leak

function GetDosOutput(CommandLine: string; Work: string = 'C:\'): string; var SA: TSecurityAttributes; SI: TStartupInfo; PI: TProcessInformation; StdOutPipeRead, StdOutPipeWrite: THandle; ...
user avatar
1 vote
1 answer
102 views

Delphi interface type incompatibility

What I am trying to do is to add common methods to these two classes which have the same indirect ancestor. IMyMethods = interface procedure SomeMethod; end; TMyADODataset =class(TADODataset, ...
user avatar
  • 9,990
-1 votes
2 answers
82 views

How to debug the CPU tab on Delphi?

I'm using Delphi 11. Sometimes an exception happens, and instead of Delphi going to the unit that threw the exception, it goes to this CPU screen, and I don't know what to do with it. What can I do in ...
user avatar
  • 5,797
1 vote
1 answer
47 views

Clearing an ImageObjectAppearance item from Dynamic Listview

First the Code: procedure TfrmJob.lvServiceReportsMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Single); var i: Integer; rct: TRectF; begin if Button = TMouseButton....
user avatar
  • 37
0 votes
0 answers
78 views

Delphi 11.1 Why are error line numbers sometimes wrong?

Under some circumstances (with Delphi 11.1), Error Insight reports errors in code at the wrong line number(s). However, it is not just Error Insight - compiler messages show the wrong line numbers and ...
user avatar
0 votes
0 answers
27 views

Delphi iOS avoid screenshot

I want to avoid taking a screenshot of one particular form for iOS. On Android I found a way to avoid this but for iOS it seems this is an OS function which can't be used. Does anyone have experiences ...
user avatar
  • 57
-2 votes
0 answers
51 views

SDK (C++) -> Delphi [closed]

There is an SDK for device. by default - it is built into a static library in the studio. everything seems to be going. the demos attached - also work. it is necessary to fasten all this business in ...
user avatar
  • 1
1 vote
2 answers
99 views

How to copy a folder and keep the structure?

I am creating a function that copies a folder and pastes it with another name. Therefore, I have my "Main" folder and according to the query I make copies of the folder called like this: &...
user avatar
  • 23
-3 votes
0 answers
28 views

Quick report frames show in preview but not print

In my quick report 6 that is on rad studio 11, qr frames show in preview but in actual printing, they do not print on paper.
user avatar
0 votes
1 answer
50 views

Named subcomponent inside compound(?) component

What I'm basically trying to create is a component that inherits from TScrollBox. That component has a TGroupBox and inside it a TFlowPanel. What I need is when I double click this component, a ...
user avatar
  • 648
0 votes
0 answers
34 views

Passing credential to a Delphi TWebBrowser component

I'm using Delphi XE11 to develop a small application to retrieve info from a password protected website. So far I have placed a TWebBrowser on a form and use "Navigate" to load the page. ...
user avatar
0 votes
3 answers
93 views

How to search for different occurences of strings using POS

I'm trying to create a function that is similar to Delphi's pos function, but that i could pass different strings to be searched, instead of only one. So i could call the function like this : multipos(...
user avatar
  • 5,797
0 votes
2 answers
47 views

how to access image picture in a TImageCollection in Delphi 11

I've loaded several images in a TImageCollection. I want to access the pictures inside to copy to a fastreport and alike. I've tried something like this: var vi_imagen :TImageCollectionSourceItem; ...
user avatar
  • 3
-4 votes
0 answers
73 views

The main form not refreshed (canvas paint) while creating the child form [closed]

I need help with my Delphi app. I'm using Delphi 10. Here is my problem. I've a main form. I've split that main form to five columns, and I'm repainting columns using canvas and an array of bitmap ...
user avatar
  • 3
-3 votes
1 answer
67 views

Latest stable version of INDY 10 working with Delphi XE2 wanted [closed]

What is the latest stable version of INDY 10 working with Delphi XE2 and where to get it? I saw an old post talking about 10.6.2 with TLS 1.2 support I need to upgrade a software working with idhttp ...
user avatar
  • 1
0 votes
0 answers
45 views

Delphi's FireDac component TFDStoredProc does not support some parameter types. What are the work-arounds?

In Delphi, if one links up a TFDStoreProc component with a stored procedure in a Postgres database, the preparation and execution works if the parameter types in the list of stored procedure ...
user avatar
0 votes
0 answers
47 views

Getting closed caption data files from YouTube V3 API in Delphi

When you upload a video to YouTube, it automatically transcribes it and creates three different CC (closed-caption) files. They can be downloaded via the YT Creator Studio. I want to write a small ...
user avatar
0 votes
0 answers
46 views

Delphi 11.1 install freezes Installing "Core common Files Enterprise features", why?

RAD Studio 11.1, trying to install Delphi. I have previous installs of Delphi 10.4 and 10.3. I have an enterprise license. I am installing on windows 11 Pro, 21H2, Build 22000.652, after running ...
user avatar
0 votes
1 answer
130 views

Нow to define a constant managed record with an overridden assignment method

I'm writing a program for mathematical research. Assembly language is used for speed. Data is represented as managed records with operator overloads. Some data is represented by constants. program ...
user avatar
-1 votes
1 answer
112 views

If-else usage in Lazarus [duplicate]

I'm new to Lazarus and today I faced an issue with if-else usage. Everything is ok while there is only an if statement but when I'm trying to write an if-else statement this error shows up: unit1.pas(...
user avatar
  • 1
1 vote
1 answer
83 views

Fill inside a rectangle with a pattern Delphi

Using the following code in delphi-firemonkey, it is easy to fill a rectangle with a solid or gradient color, but I cannot figure out how to fill it with a pattern like dots or slant dashes. FillRect(...
user avatar
  • 95
1 vote
0 answers
40 views

Delphi FMX 3D Scene multi object selection code example (selection rectangle)

I'd like to know is there any intrinsic method in FMX to select single or multiple objects in 3D Scene, preferably with selection rectangle? Say that, I've many objects(spehere, cube, complex mesh etc....
user avatar
0 votes
0 answers
66 views

Trying to use Edgewebbrowsers SubscribeToCDPEvent

Delphi has a demo with EdgeBrowser I am trying to Subscribe to DevToolsProtocol using the follow. EdgeBrowser.SubscribeToCDPEvent('Log.enable'); EdgeBrowser.SubscribeToCDPEvent('Log.entryAdded');...
user avatar
0 votes
0 answers
120 views

Clicking on HTML element in Delphi TEdgeBrowser?

How can I "click" on the following HTML element via Delphi code? <div id="card" class="ev_tab_title display active " draggable="true" tabindex="0" ...
user avatar
  • 69
0 votes
1 answer
100 views

Allow insecure networks for Delphi Edge Browser component

I am using Edge browser component of Delphi 11.1 in order to automate a navigation process. The problem is that at the start of the navigation process I get the Message "Your connection isn't ...
user avatar
  • 69
0 votes
2 answers
80 views

How to get the clicked column on TDBGrid.DblClick(Sender: TObject)?

When using the OnDblClick event of a TDBGrid, how can i know what column was double clicked ? This is easy with the OnCellClick as it has a TColumn parameter, but not on OnDblClick.
user avatar
  • 5,797
0 votes
0 answers
84 views

After migrating from Delphi 10.4 to 11.1, android service does not start anymore

My application runs fine with Delphi 10.4. I migrated to Delphi 11.1. Now, I get this when the activity tries to start the android service : 04-22 14:22:29.476: W/company.Project(28861): CheckJNI: ...
user avatar
-7 votes
0 answers
83 views

C:\PROGRAM FILES (X86)\BORLAND\CBUILDER5\PROJECTS\TEST\AROLABELEDEDIT.HPP' contains invalid OMF record, type 0x2f [closed]

Actually, i am working with C++ Builder and I had an error when I tried to compile my project, I did my search in internet, but I didn’t found a solution for the problem. Someone can help me? PS: I ...
user avatar
  • 1
1 vote
1 answer
67 views

Retrieving the number of breaks in a FLowLayout

I want to programatically retrieve the number of breaks/newlines in a TFlowLayout. I have a simple TFlowLayout with 4 regular controls inside (The TFlowLayout does not contain any TFlowLayoutBreak ...
user avatar
7 votes
1 answer
115 views

Delphi 10.4.2: Why does console application require administrative privileges?

Why does a simple console app require administrative privileges? program LTUpdate; {$APPTYPE CONSOLE} begin WriteLn('Hello World'); end. If I run this program from a command prompt nothing ...
user avatar
0 votes
0 answers
144 views

Retrieve values from database to StringGrid

In connection with my previous question I've successfully save string values in StringGrid to my database in one column. Now I want to retrieved the values from database and put it back from ...
user avatar
0 votes
1 answer
79 views

Why does a published event on my form not show in the editor

I have added a published event to my main form, expeecting it would show up in the editor, but it doesn't. Am I doing something wrong, or is this just not the case? THIFISongEndEvent = procedure(...
user avatar
0 votes
0 answers
72 views

Unable to find record, no key specified

I am coming across this infamous error in my Delphi application. In my ADODataSet, I have set my CommandType to cmdText, and then set CommandText to SELECT * FROM production.details When I do a record ...
user avatar
1 vote
0 answers
68 views

Register Flash.ocx Exception EOleSysError in Delphi

I tried to register Flash.ocx with Regsvr32, but it gave me Exception EOleSysError. For this issue I searched in google and many other websites such as stackoverflow and so on, but I couldn't fix this ...
user avatar
1 vote
2 answers
104 views

PAServer 22 is not working in Mac Monterey, it use dylib that link with framework Python 2.7 and not exist in /System/library/Frameworks of Monterey

I’m download the lastest version of Delphi 11.1 and all is Ok, but when I try to debug project in MAC Monterey 12.3.1 using PAServer 22, I have an error in PAServer Terminal window, it said that ...
user avatar
-2 votes
1 answer
124 views

Send notifications when the app is not used?

A client of mine had the question of whether it is possible to send a push notification in the employee app if they have not entered their hours by a certain time. Is it possible to create a service ...
user avatar
0 votes
2 answers
92 views

Lose milliseconds on DateToISO8601

A lot of APIs want the ISO8601 without the milliseconds like this: Get only orders which were placed after this timestamp. Should be in YYYY-MM-ddTHH:mm:ssZ format I guess the main "issue" ...
user avatar
0 votes
1 answer
94 views

How to save StringGrid content in MySql database in one column?

This code gets the StringGrid contents per row with '|' as a separator. procedure TForm1.datas(); var iRow: integer; RowData : string; begin {get stringgrid content} for iRow := 1 to Form7....
user avatar
0 votes
1 answer
66 views

Storing TTreeView inside SQL Server database table

Am trying to store my TTreeView inside SQL Server database table by using the next procedure: procedure Save; var BlobField :TBlobField; Query:TADOQuery; Stream:TStream; begin Stream := ...
user avatar
  • 15
0 votes
1 answer
106 views

Function to recreate a TForm in Delphi

I need a procedure that recreates a form. The reason being is that I have forms with many different components. These component values (edit box text, checkbox checked or not, etc) are saved inside ...
user avatar
  • 661
-1 votes
2 answers
54 views

Custom TButton not showing on the Form

I am trying to have a functionality where a user will be able create a new button by clicking on the existing one on the form. Now, I am trying to achieve that by creating my own class called MyButton ...
user avatar
-2 votes
0 answers
47 views

Change color cell in a Delphi FMX TGrid, looking another column in the row

Using Delphi 10.3.3 and Firemonkey and TGrid. I know how to change the background color or the text color of a cell in the OnDrawColumnCell event. But how to make the change according to the value of ...
user avatar
-1 votes
1 answer
76 views

Stop WndProc processing during shutdown of the app

I have defined a WndProc which looks similar to below (the code is written in C++Builder, but it applies in similar form to Delphi as well): #define WM_SETTINGS_UPDATE WM_APP + 1234 #define ...
user avatar
  • 3,255
1 vote
1 answer
54 views

Disable runtime themes not with the GUI project options

I'm looking to control runtime themes in a way that is friendly for version control tools. Be it programmatically, or by some configuration such as a text based manifest file (but not the DPROJ file ...
user avatar
  • 1,044

1
2 3 4 5
991