Questions tagged as 'delphi'

1
answer

How to get the value of a property and how to get the property where the attribute is declared?

Let's say I'm creating an Attribute like this: TCompareAttribute = class(TCustomAttribute) private FPropertyToCompare: string; public constructor Create(APropertyToCompare: string); function IsValid: boolean; end; implementation ... fu...
asked by 25.02.2015 / 15:18
3
answers

lifecycle delphi datasnap which one to use?

Greetings to all. I developed an app for android using the datasnap reflection REST technology with JSON delphi using the firedac data connection engine. This app basically has the data query function. My question is what kind of lifecycle...
asked by 23.02.2015 / 12:35
1
answer

Open forms change size when closing another

I have forms of type fsMDIChild that are set to initialized maximized ( wsMaximized ). They open normally, however when I close some of them the others change their status to WsNormal . I would like to know if you ca...
asked by 30.01.2015 / 22:08
1
answer

How to control transaction between two distinct database in Delphi?

I have two databases and I need to ensure the persistence of the data in the two in a given process. The connection components are those of the Interbase Express package. I did so: database := DataModule.IBDatabase; databaseDois := TIBDa...
asked by 27.02.2015 / 18:47
1
answer

How to make wsmaximized not hide top menu?

I have a form in dephi but when I maximize it or it frames the WindowState = WsMaximized the top bar does not seem to be able to see the action buttons (close, minimize) and the title of the form. Does anyone know of any alternatives so the m...
asked by 29.01.2015 / 00:33
1
answer

What version of RadStudio that has crippled the TWebBrowser library?

What version of RadStudio has updated the TWebBrowser library making it compatible with new versions of Internet Explorer?     
asked by 11.10.2014 / 03:02
1
answer

Shortcut in Delphi to move block of code

In eclipse has a shortcut that greatly increases my productivity: In the code editor, to move to lines above or below a block of code is used by default ALT + KEY DOWN / UP. In Delphi, I already looked in the documentation of Embarcadero and d...
asked by 09.08.2014 / 15:05
1
answer

Delphi: How to check if element obtained by getElementById really exists?

I have the following code: procedure TMainForm.ValidarAcesso; var doc: variant; element: variant; begin doc := coHTMLDocument.Create as IHTMLDocument2; doc.write(memHtml.Text); try element := doc.getElementById('theElementId');...
asked by 09.08.2014 / 04:42
1
answer

How to create an event, the mouse reaches a certain area of the application

I am developing an application in delphi xe5 and would like to make a menu open to mouse "enter" in an area of my form. It's kind of complicated to explain, but I'll try ... The windows taskbar has this option, it is hidden and when you arriv...
asked by 10.07.2014 / 18:53
1
answer

Doubts creating, manipulating and deleting form

I have the following questions: When creating a form, according to the code below, do I need to destroy it in some way when it is finished by the user? F_PesqCli: = TF_PesqCli.Create (self); F_PesqCli.ShowModal; How to ensure that...
asked by 10.07.2014 / 14:44