Questions tagged as 'delphi'

1
answer

Incompatible type: isethod pointer and regular procedure

I have a calendar with only month / year and I created an "event" so that, when it was selected, the month could be treated and the fields filled in. type TonAnoMesSelecionadoEvent = procedure(Sender,Parent:TObject;Mes,Ano:Integer); TCale...
asked by 08.04.2016 / 19:31
1
answer

Problem in defining onClick in runtime with Pascal (Delphi / Lazarus)

I need to use procedure ClicaItem(Sender: TObject); in a OnClick created at run time by calling procedure CriaItem(nome:String); . However, in all my attempts, I could not assign item.OnClick to procedure ClicaIte...
asked by 27.03.2016 / 08:03
1
answer

View the Form of a DLL in Delphi DX10

I have the following situation: I have a project, which calls a DLL and it has a form. Until that moment 'OK', it performs the call and displays the form, only one thing that bothers me visually is that the system tray has two open application...
asked by 29.09.2016 / 12:52
2
answers

CheckListBox - Select only one record

The TCheckListBox allows you to select several items, but different from some components let's say "his relatives" has the Boolean MultiSelect Is there any function or procedure to allow only 1 selected item?     
asked by 07.01.2016 / 17:10
1
answer

Capture text Webrowser

Hello, I need to capture a certain text from a website that I am accessing through TWebBrowser , since soon on that internal site it generates a text something like this: <html> <head> <title> XXXXXXXXXXXXXXXXXXXXXXX &l...
asked by 29.12.2015 / 19:30
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

Break line in character

I have an application where a TLabel receives a line of a TMemo , But the form that I'm displaying has to be small, and the information is large. My idea is that when it reaches a certain number of characters the senten...
asked by 23.12.2015 / 16:19
1
answer

Justify QRDDRichText

I'm creating a report in Delphi using QuickReport . In the database I write formatted text (ie, with justified parts, other aligned left-centered ones). To justify the text in TDBrichedt I used the following code: procedure...
asked by 21.12.2015 / 15:01
1
answer

Add space after finding a character

I have the following code that adds the contents of a button and a space after clicking procedure TForm3.Button1Click(Sender: TObject); begin if count = 0 then Edit1.Text := Edit1.Text + TLabel(Sender).caption+ ' ';...
asked by 25.02.2016 / 15:30
2
answers

Delphi: Error 80020101 when executing javascript in TWebbrowser

I use TWebbrowser in an application Delphi XE7 , but I'm having problems trying to execute javascript commands.    (OleException ... Can not complete the operation Error: 80020101) This happens with any function I try...
asked by 07.11.2015 / 20:33