Category "delphi"

How to wait that all anonymous thread are terminated before closing the app?

I encounter an awkward problem. In my app I often do TThread.createAnonymousThread( procedure .... end).start The problem I have is that when I close t

WaitForMultipleObjects always returns a pipe read handle as signaled

My question is: How to use WaitForMultipleObjects to wait until there is something the be read from an anonymous pipe? The code below is a minimal reproducible

Delhi TIdSSLIOHandlerSocketOpenSSL - how to configure CONNECT parameters

I watch the CONNECT request in Fiddler: CONNECT site.name:443 HTTP/1.1 Pragma: no-cache Connection: keep-alive Host: site.name Accept: text/html,application/xht

Getting EOleSysError Class not registered but don't know which DLL is missing - Delphi XE

Running a program on a machine that doesn't have the IDE I get this error. I understand that the problem is a missing or unregistered DLL or OCX. Lots of posti

Sending e-mail with Indy doesn't show attachment in Outlook

I have the following problem. I've created a Windows service that sends e-mail with .xls attachments. If I open the e-mail with Windows Live Mail or Web Mail, i

Change the entire font name of all dialogs (part 2) [duplicate]

Based on this post, Change the entire font style of all dialogs How to change the font text of the entire installer in Graphical Installer? Wh

How to add touch effect to TRectangle in Delphi Firemonkey / Android app?

I want to add touch effect animation (expanding circe) to a TRectangle. Same kind of effect that is present on TButtons by default - when you put a finger on th

How do I use Not in a If statement with more than one condition

Working on a old legacy code using VB or delphi, do not know for sure. I am trying to write-- if itemA does not equal 111 OR itemA does not equal 222 then futu

EInsufficientRTTI exception with message 'Insufficient RTTi available to support this operation'

Trying to convert an object to JSON at run time, I'm getting insufficient RTTI Error. The object is: {$M+} {$TYPEINFO ON} {$METHODINFO ON} {$RTTI EXPLICIT METH

How to convert text data into an Image?

Once you load and image into a component, I can see that Delphi store the image data on DFM, . Example: object img1: TImage Left = 71 Top = 2 Width = 18

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 Cre

Decompiling Delphi .dcu to .pas

I'm running RAD Studio Delphi XE2. Something strange appears to have been done to one of my .pas files. Many of the lines from my unit1.pas have been replaced w

Pascal 'Split' Function

I am coding a little program in pascal and I have run into a small problem. In other languages there is a function named 'split' or 'explode' to take a long str

Rtti accessing fields, properties and invoke method in record structures

Rtti accessing fields, properties and invoke method in record structures. I use the following record types, is from site type Nullable<T> = record pu

How to get value of an Output Parameter of a MySQL SP with TUniSQL

I have created a Stored Procedure in a MySQL DataBase that have 2 output parameters like this (for Example) : CREATE PROCEDURE `invite_user`(fUName VARCHAR(15)

How do I drag and drop from a TDBGrid?

If I set DragMode to dmAutomatic it prevents me from selecting rows. If I used OnCellClick to call BeginDrag it only fires on mouse up, which is not dragging in

How can I add a ListBoxItem programmatically?

I could only find how to create a ListBoxItem by clicking on the component -> Items Editor. How can we create programmatically a ListBoxItem using Firemonke

Delphi Twebbrowser change value of textbox.

I'm have some difficulty changing the value of a textbox in twebbrowser. I have tried WebBrowser1.OleObject.Document.getElementById('verification_control_0').va

Change the font colour of combo box in delphi firemonkey mobile

I have created application using Delphi XE7 firemonkey for Android mobile. In that i'm using Combobox. How can I change the font colour of the combo box?

Delphi FTP upload Access violation

I'm trying to upload a file .txt in my web space, but then the problems start, the code I tried is this: uses Windows, Messages, SysUtils, Variants, Classes, G