Questions tagged as 'object-pascal'

1
answer

How to download from Delphi?

Hello, I created an application in Delphi , but it needs to download some files that I have on a website, but I have no idea how to do this, please help me. Ten of thanks for reading my question!     
asked by 06.06.2015 / 20:10
1
answer

How do I know when the computer will shut down / restart / hibernate / suspend in Delphi?

I have a system that works with websocket in Delphi with mORMot, when I reboot the PC or when I disconnect it it executes OnClose and OnDestroy and through that I can remove the callback of the user that was logged in, but when I send hibernate...
asked by 17.08.2016 / 14:38
1
answer

How to put 3D effects in Delphi applications?

Hello, I have noticed that some applications in Delphi have graphical effects on the forms in such a way that as soon as the cursor passes over an image, for example, a wave appears around it, I have seen this a few times and wanted to know how t...
asked by 09.06.2015 / 20:00
1
answer

Frame Replication [Error: Component already exists]

I have a form in delphi and wanted to click a button a pre-created frame was added dynamically several times. I'm trying through this code: procedure TMain.Button1Click(Sender: TObject); var i:integer; frame:TFrame; begin for i:=0 to 5 do...
asked by 20.12.2016 / 19:23
1
answer

How to insert equal objects or list of objects in MongoDB?

Example, I have the following JSON: { Casa:'b32', integrantes:{ pessoa: 'joao', pessoa: 'Maria', pessoa: 'Daniel' } } When inserting into the database it stays this way. Apparently it is overwrit...
asked by 29.06.2018 / 20:18
2
answers

Windows Folder Directory

I'm developing an application that references local directories on my computer. If I try to run the application on another computer, the references are lost. nmArquivo := 'C:\Users\Admin\Desktop\Protetor de Tela\Img.txt'; nmArquivoImgAtual :=...
asked by 24.06.2016 / 20:24
1
answer

How to read text files online?

I have a project done in Delphi and at a certain time it should read a text file that is hosted on a website, however, I want this reading to be done online through a TMemo without there being any a download of the file being read in ques...
asked by 22.02.2016 / 03:18
1
answer

How to return an object from a database in SQL (MongoDb)?

I currently have some objects in a MongoDB database. The structure is as follows. { "_id" : ObjectId("55cb9c666c522cafdb053a68"), "geometry" : { "type" : "Polygon", "coordinates" : [ [ [...
asked by 28.06.2018 / 20:05
1
answer

How to check the UNEXISTENCE of a directory on an FTP server in Delphi?

I use Delphi and Lazarus to create my applications, what should I do to verify the nonexistence of a directory contained on an FTP Server ? For example, when you check the nonexistence of a local file , use the following c...
asked by 03.04.2016 / 02:32
1
answer

How do I install the Chromium package in Delphi?

I was using the TWebBrowser component which is based on Internet Explorer, however I have noticed that it runs the HTML5 pages in a disfigured way, I heard about the FireFox package, but it did not run in Delphi and was shown to be very heavy, s...
asked by 18.08.2015 / 00:28