Questions tagged as 'delphi'

1
answer

How to disable a TTimer object when you click a button that opens another form and enable it again when the other form is closed?

Good morning. I have a timer running on a form that calls several others. When this form opens another the timer should be stopped and when the form that was opened is closed the timer must be enabled again. However, I can only do this in just o...
asked by 20.11.2018 / 13:34
1
answer

Open word file through delphi

I have a system that integrates with MS-Word I can do almost everything in it, just can not open the document and leave it as read-only so that the user can not make modifications. Currently my code looks like this: //Cria objeto principal...
asked by 25.05.2018 / 22:25
1
answer

Popular ClientDataSet with JSON truncates data in 255 characters

I'm trying to pass a JSON to a TClientDataSet using the following function: procedure JsonToDataset(aDataset : TDataSet; aJSON : string); var JObj: TJSONObject; JArr: TJSONArray; vConv : TCustomJSONDataSetAdapter; i: Integer; begin i...
asked by 21.03.2018 / 16:01
3
answers

Wait for Thread to finish to proceed with the code - Delphi

I'm facing a problem in an application I've developed. It is an automatic updater that basically downloads the necessary files and extracts them in a suitable way. The problem is time to download. I put the download method inside a Thread, put i...
asked by 18.04.2018 / 16:03
1
answer

Why does the app close when I click edit1?

Personal the problem is as follows, I click on the button to create a new form, edit1 receives the focus, digital keyboard appears when I click on the letter a for example the app closes, why will it ?? Can anyone help ..? procedure Tformadhor...
asked by 11.04.2018 / 04:45
1
answer

How to convert this character to PostgreSQL?

I'm using DelphiXE and PostgreSQL, I happen to need to insert some characters in the database that are not supported in LATIN1. My base is UTF-8, but as the system has been transported since the Delphi6 version, and the old base I'm using LAT...
asked by 25.04.2018 / 20:46
2
answers

Send CTRL + V via PostMessage

Hello, I need to send the combination of CTRL + V clicks via POSTMESSAGE. I tried to do this: PostMessage(h,WM_KEYDOWN,VK_CONTROL,0); PostMessage(h,WM_KEYDOWN,VK_V,0); (Ele da erro nessa linha diz que o VK_V não existe) PostMessage(h,WM_KEY...
asked by 11.06.2014 / 16:52
1
answer

Integrate QRCode reader into the Delphi system!

I wonder if it's possible to integrate a QRCode reader into delphi that uses WebCam to read. Or a bar code reader. I have no idea how to start, so I have not done anything yet!     
asked by 29.05.2014 / 16:48
1
answer

How to detect the button click (html) on TChromium CEF4Delphi?

I have the TChromium component CEF4Delphi loading a web page, and in this web page I have a button. Is it possible to detect the click of this button on the web page (html) and open for example a delphi form? If this is not possible, is there...
asked by 28.12.2017 / 18:34
1
answer

Use data from an array in a Report

I have an array like this that is being populated in runtime: MatSort[0][0] - Nome1 MatSort[0][1] - InfoNome1 MatSort[1][0] - Nome2 MatSort[1][1] - InfoNome2 But I do not know how to reference the data in this array in fast-reports so that...
asked by 18.09.2017 / 19:31