delphi

  • Focus control in a frame

    Focus control in a frame 2018-06-24

    I hope I can explain wich is the prblem i'm trying to solve. I've a form with 3 papnels: 1 for buttons, 1 for data, and 1 for messages. The data panel is populated with some frames (one for each database table I need to use). The table detail frame a

    Tags: delphi, interface
  • Multithread interactions 2018-05-10

    Main Form: unit Unit3; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls; type TForm3 = class(TForm) Memo1: TMemo; Button1: TButton; Butt

    Tags: multithreading, delphi
  • Loop gives other results 2018-03-27

    I have this python code here: spalte=5 for x in range(spalte): print x print spalte for i in range(spalte-1): print i print spalte-1 And the pascal / delphi loop here: spalte=5 for x := 0 to spalte do begin writeln(x); writeln(spalte); for i := 0 to

    Tags: python, delphi
  • How to preselect capslock in TouchKeyboard component 2018-03-04

    I am working with Delphi TTouchKeyboard component. Because in later use people will mainly use capital letters, I would like to preselect capslock. My problem now is, that the Touchkeyboard only changes its key caption when I click directly on a key.

    Tags: keyboard, delphi, capslock
  • Can I assign the method of an extended record to an event in Delphi? 2017-12-26

    Given the following record type: type TMyRecord = record private procedure SomeMethod(_Sender: TObject); end; should it be possible to assign this method as the event handler? var MyRecord: TMyRecord; begin Button1.OnClick := MyRecord.SomeMethod; end

    Tags: delphi, delphi 2007
  • Can I use TAnimation without TFMXObject 2017-12-16

    I'm drawing my own shapes directly on a TCanvas in the onPaint event (i.e. I'm not using TShape). Can I use a TAnimation to animate elements in my drawing? I was hoping I'd find the current value as a property on TAnimation, or at least as an argumen

    Tags: delphi, firemonkey, delphi xe8
  • Best practice for resolving in Spring4D? 2017-12-07

    In the spring4d demos, ServiceLocator.GetService<MyType>('Name') is used to resolve the types. But why not use GlobalContainer.Resolve<MyType>('Name')? I don't see any advantage in this approach... --------------Solutions------------- There is

    Tags: delphi, dependency injection, ioc container, spring4d, delphi xe6
  • How do I get a dynamic TClientDataset (based on TRESTResponseDataSetAdapter) to correctly recognise boolean values? 2017-08-23

    I've built a delphi client sample in Delphi XE5 that utilises the Rest library: TRestClient TRestRequest TRestResponse TRESTResponseDataSetAdapter TClientDataSet (and TDataSource bound to TDBGrid and TcxGridDBTableView) All served by an ASP.net Web A

    Tags: delphi, json, delphi xe5
  • TStringGrid cannot display very long (6K) strings 2017-06-28

    I want to load some text in a TStringGrid. The strings are short except for a column where the string is over 100K. It seems that TStringGrid cannot handle this. The text does not appear in the cell until I double click the cell to edit it. But even

    Tags: delphi, delphi xe7
  • EnumWindows behaving oddly in 64-bit Delphi 2017-06-21

    I am working in Delphi XE3, on a 64-bit Windows 8 machine, building 32-bit and 64-bit applications. I am using EnumWindows to find out the Windows Handle of the main window of a process given its Process ID. The code uses the LPARAM parameter in the

    Tags: winapi, delphi, win64, delphi xe3
  • delphi - disconnect IdHTTP in the middle of long-poll request 2017-06-03

    I am implementing a live chat in my deplhi project, which receives new messages by doing GET request to the server. The server itself closes connection after 20 seconds if no new messages occur. Code discribed above is located in a separate thread (i

    Tags: multithreading, delphi, delphi 7, idhttp
  • Lock record in database table 2016-09-21

    I have a multi user database system. I would like to know if there is a way so that only one user can view/edit 1 record at once. When I say view/edit 1 record, I mean open the form which contains the records fields on it. If another user tries to go

    Tags: delphi, delphi xe2
  • Delphi COM vs DLL in .NET 2016-08-14

    Need to create a Delphi DLL that can be called from Delphi and .NET. What does .NET like more, COM or dll? Or does it matter? I just remember hearing that COM can be annoying because of versioning. --------------Solutions------------- The issue of ve

    Tags: .net, delphi, .net 4.5
  • Access violations in the BDE when adding indexes 2016-05-17

    I'm attempting to add an index to a fairly large (1.2 million records) DBase 7 table with memo fields. When I add the first 2 indexes, it works with no problem. However, when I attempt to add the 3rd index, which is a one field index with no options

    Tags: delphi, delphi 7, bde
  • Operations with record in Delphi 2016-05-12

    I have the following code type TEnumTest = ( Hello1 = 0, Hello2 = 1, Hello3 = 2, Hello4 = 3, Hello5 = 4 ); type TRecordTest1 = record testa : Integer; testb : AnsiString; testc : Boolean; testd : LongWord; end; type TRecordTest2 = record testa : Inte

    Tags: delphi
  • SIGILL Exception in Lazarus 2016-05-03

    After working fine for a while, my code started to raise a SIGILL exception when used. I didn't understand the documentation. What does the SIGILL exception means in practical therms? This is the code that is raising the exception, could you help me

    Tags: exception, delphi, lazarus, fpc
  • LinkedList Read One by one 2016-02-27

    I am using simplelinkedlist. Here: (https://delphihaven.wordpress.com/2011/07/31/generic-linked-lists-redux/) I want to read all list one by one. But i couldnt find any option for this. Here is my codes : function TKduCache.addJPIPResponseData(jRes:

    Tags: delphi
  • Remove Band Separators when exporting CxGridBandedTableView to Excel 2015-09-07

    I have a TCxGrid (DevExpress) with a TCxGridDBBandedTableView. This view has 2 bands, and each band has its columns. I use the ExportGridToExcel (from DevExpress's cxGridExportLink unit), to expot the grid to excel. Example: Grid Configuration Band 1

    Tags: delphi, devexpress, delphi 2009, export to excel, tcxgrid
  • Retrieving some values from html document delphi 2015-08-23

    i would like to ask someone how is possible to extract some informations from HTML document on network folder. and get them to memo, or text file. the HTML file contains this informations: <div> <a name="N02CB3FB0N02CB7834"></a>

    Tags: delphi, delphi 7
  • read files from in Android internal storage using delphi 2015-08-12

    is it possible to read file.db from internal storage in android /data/data/.... using android firemonkey app using delphi not java?, i tried opening files from internal storage but access was denied even my devise is Rooted ! any help will be appreci

    Tags: storage, delphi, android, internal

Copyright (C) dskims.com, All Rights Reserved.

processed in 7.600 (s). 9 q(s)