Questions tagged as 'delphi'

1
answer

How to unselect a TListBox

I'm creating a component to serve as search refinement, offering suggestions. This component has a TEdit where you can enter what you want to search, a list where possible values for suggestion are stored and a TListBox to present the suggestion...
asked by 15.09.2015 / 13:37
1
answer

Application Desktop + DB Online (Hosting)

Good afternoon, Well, my question is the following, in my connection to a desktop application with online database: Question 1: What is the best way to stay secure the connection to the hosting server? Question 2: What risks will I take...
asked by 29.06.2015 / 19:58
1
answer

Put values from a memo into an array

I have the following component Memo with the texts: 200:80 177:3306 I need to put this text inside an array , for example, if based on the first line, the text 200 (would be array[1] ) and the 80 (would be array[2] )...
asked by 17.06.2015 / 22:54
1
answer

Form misaligning in high resolution

My form is misaligning when the application runs on a monitor with a higher resolution than mine, the borderstyle is in bsnone and still it still misaligned, I also set all property anchors to false .     
asked by 20.07.2015 / 19:01
1
answer

Simulate mouse click

I need to simulate the mouse click, but I can not use PostMessage nor mouse_event . Is there any other way to send the click?     
asked by 03.05.2015 / 06:29
1
answer

Function for popular TTreeview only adds childs to the first node

I created this procedure to populate a treeview: procedure TFrmGerProfDock.Button1Click(Sender: TObject); Var Tables: TTreeNode; I: Integer; begin for I := 0 to ds.DataSet.FieldCount - 1 do begin TreeView1.Items.BeginUpdate;...
asked by 25.06.2015 / 16:52
1
answer

Load rows into listview from an OpenDialog

I need to load items from a text file into a Listview using Opendialog , how to prepend? Is there any property LoadFromFile ?     
asked by 01.05.2015 / 21:33
1
answer

Relate more than one table to a single registration screen

I have a resume screen as shown below. What I needed to do is just register, but the problem is that I have three records on this screen, that of personal information, phones and emails. The phone and email are linked as foreign keys in th...
asked by 01.04.2015 / 17:52
3
answers

How to optimize the query in a remote bank using ClientDataset?

I am using a ClientDataSet to query on a remote database, the table has more than 100,000 records and is getting very slow, the SQL I am using is: select (coalesce (cast(A.con_baixa as date),current_date) - cast(A.con_vencto as date) )Diastra...
asked by 25.03.2015 / 18:04
1
answer

How to allow the insertion of information in the database using DBLookupComboBox?

I have a DBLookupComboBox that captures the data in the Species table so that the user can select what he needs, after which this data is saved in the Animal table. p> My question is how do I get the user to add a new record to D...
asked by 14.03.2015 / 03:42