Questions tagged as 'delphi'

1
answer

Repetitions and combinations of values

I have a table (quina) with 5 fields, each field can have the value of 1 to 80. I would like to know if it is possible in SQL or only in Delphi, to get the dukes (combinations of 2 numbers) between 1 and 80 in the fields from c1 to c5. no mat...
asked by 02.10.2017 / 21:24
1
answer

Delphi - Executable with different behavior on different machines

I wanted to create a transition effect for a form, so in the event OnShow , set the AlphaBlend := 0 property and, in OnActivate: for i := 55 to 255 do begin AlphaBlendValue := i; Update; sleep(1); end; It wor...
asked by 28.09.2017 / 15:46
2
answers

Disable FireDAC dataset editing without generating exception

Suppose a FDQuery with a select simple is connected with a DBGrid . I want to prevent the user from doing any editing in the registry. I know there is a EnableDelete option in FDQuery , but if the user tries to...
asked by 20.09.2016 / 20:12
1
answer

Onclik on the dbgrid line

I'm developing a system, and I have a dbgrid where I get results from a query , how would it be possible when I click on a certain record (for example in the name of a person in the NAME field) form ?     
asked by 19.09.2016 / 19:34
1
answer

How to close a "folder"

I have a project in Delphi 2010 that when I click on a button opens a directory, this is the code: DirFolder := 'C:\teste'; ShellExecute(Handle, 'open', PChar(DirFolder), nil, nil, SW_SHOWNORMAL); Open this: I leave the question, i...
asked by 12.10.2016 / 17:09
1
answer

Develop PDF417 with Delphi

Good afternoon. I use an old report generator for Delphi XE7 ( pReport ). I have the source code for it, and I've made a lot of changes to it. Now one more challenge, I need to include a new type of Barcode on the generator. It would be PDF...
asked by 13.10.2016 / 18:50
1
answer

Delphi - Find out if the application has administrator privileges.

Good afternoon, I need to know if an application written in Delphi is running with administrator privileges or not. Does anyone know of any way to get this information?     
asked by 04.08.2016 / 20:40
2
answers

How to use Firebird WITH LOCK with Delphi FireDac

I am trying to block a table on my system in order to prevent other users from entering the system when the procedure is running, how can I do this using the "WITH LOCK" / strong> with "FireDac" ? Does this eating lock the table for writi...
asked by 16.11.2017 / 19:15
2
answers

Image in TSpeedButton with TImageList

Greetings to all! I'm starting to develop in Delphi 10 Seattle, before using Delphi 7. I'm trying to create a toolbar, I'm using TToolbar with a TActionList, TSpeedButtons, and TImageList. I am using square images with 32px, but when I choose...
asked by 03.06.2016 / 20:09
2
answers

Error closing executable

I have an application that has 4 forms. After the process there is a button for the person to start again. procedure TForm4.Button3Click(Sender: TObject); begin FreeAndNil(Form1); FreeAndNil(Form2); FreeAndNil(Form3);...
asked by 27.01.2016 / 13:49