Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

Delphi

59K

Solutions

16K

Contributors

Delphi is the most powerful Object Pascal IDE and component library for cross-platform Native App Development with flexible Cloud services and broad IoT connectivity. It provides powerful VCL controls for Windows 10 and enables FMX development for Windows, Mac and Mobile. Delphi is your choice for ultrafast Enterprise Strong Development™. Look for increased memory for large projects, extended multi-monitor support, improved Object Inspector and much more. Delphi is 5x faster for development and deployment across multiple desktop, mobile, cloud and database platforms including 32-bit and 64-bit Windows 10.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hello,

My customer wants a software which recognizes registration plate number of the cars and store them in database.
I use Delphi Seattle.

How can I do that?

Thank you very much.
0
What does it mean to be "Always On"?
LVL 4
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

how to run tidtcpclient inside queued thread ? the client will beruns for a while and needed to handle somw gui when receive commands

and complete example on using queue correctly with tidtcpclient ?
0
hi,

is it possible
launch delphi desktop app from browser

thank you, H
0
Hello guys,

How do you set the datasource on TcxComboBox of (DevExpress).
0
Hi Team, I am trying to open "Tstoredproc" component - Parameter property by clicking on "...". Once I did this activity its(Delphi) getting hanged.
I just want to define one new parameter in to that component.

Please suggest, What Can i do.
0
Hi,

I have delphi10.
And during insert procedure in MSSQL, sometimes I get exception...

Access violation at address 5D3CD9A2 in module  MSADO15.dll. Read of address 00000000.

Can somebody help...

Thank you
0
Hi,

I've a problem that I'm unable to solve, here is the problem: Under Delphi and ussing VLC for Crystal XI, I want to read the configuration of printer in the report, and if I have, initialize a TPrintDlg with the read printer, the dialog initialize well but when I use the response I've an AV, here is my code (one of them). This code run when the user clic on the printer setup button on Crystal Viewer.

procedure TdmlReportServices.crpMainwOnPrintSetupBtnClick(WindowHandle: HWND; var Cancel: Boolean);
var
  PrintDialog : CommDlg.TPrintDlg;
  InitializeDeviceMode, ReturnDeviceMode: PDeviceMode;  // Hay que usar dos, una para inicializar y otra para devolver config, si no error de punteros

  sName, sDriver, sPort: String;
  PrintDlgInitialized: Boolean;
  hInitializeDeviceMode: HGLOBAL;
begin

  // Si la versión del componente de la VCL es el 11
  if crpMain.Version.Crpe.Major = 11 then
  begin
    PrintDlgInitialized := False;

    // If the report has some printer configuration
    if crpMain.Printer.RetrieveFromReport(sName, sDriver, sPort, InitializeDeviceMode) = True then
    begin
      // Se ha podido recuperar la impresora del report
      if Assigned(InitializeDeviceMode) then
      begin
        PrintDlgInitialized := True;
        PrintDialog.hDevMode := HGLOBAL(InitializeDeviceMode);
      end;
    end;

    hInitializeDeviceMode := 0;
    Cancel := True; // Cancelamos el cuadro de diálogo por defecto de Crystal (Preparar página)…
0
Hi,

I'm using quickreport 6 and while porting an application I need a certain report structure that I'm unable to replicate. This is what I need:

GROUP HEADER 1 - Client address
  GROUP HEADER 2 - Date
    GROUP HEADER 3 - Invoice Number
      DETAILS - Items on this invoice
    GROUP FOOTER 3 - Summary for this invoice
GROUP FOOTER 1 -  Summary for this client

GROUP HEADER 1a - Summary by VAT
  DETAILS a - VAT Rate and amount per VAT rate
GROUP FOOTER 2a - Summary

Next client on next page

See screenshot of what it looks like in QR3, I just can't reproduce it in QR6

Screenshot
Does anyone have any bright ideas?
0
In a Delphi Vcl Application, when I hover the mouse-pointer over a menu-item then I would like to dynamically show a thumbnail hint (determined at runtime) next to the menu item:

menuhint.png
Does anybody know how to achieve this?
0
The Delphi list of Standard Actions contains a Format section. These Format Actions control the formatting of selected text in TRichEdit.

When I assign one of these Format Actions (e.g. TRichEditBold) to a TToolButton then the assigned action contains an ImageIndex property:

screenshot.png
To which ImageList does this ImageIndex number refer? Is there a StandardRichEditFormat ImageList?
0
Industry Leaders: We Want Your Opinion!
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

How can i resize report title on runtime  in Fastreport and Delphi xe2
0
Does any Delphi developer use the new AMD CPU Ryzen Threadripper 1950X (16 cores x 3.40GHz, 32 Threads), with at least 32 GB memory?

Do you have noticed whether the Delphi IDE and compiling have become faster?
0
Hi experts
How I can avoid inserting duplicate records in tdxmemdata Delphi xe3
0
I need to read label Text again , after I select list box index ?
How can I do this ?                

ListBoxItem := TListBoxItem.Create(nil);
                ListBoxItem.Parent := ContactsListBox;
                image := TImage.Create(ListBoxItem);
                label_1 := TLabel.Create(ListBoxItem);

                ListBoxItem.Size.Height := 40;

                image.Align := TAlignLayout.Left;
                image.Bitmap.LoadFromStream(ContactsIMGStream);

                label_1.Align := TAlignLayout.Left;
                label_1.Width := 150;
                label_1.Text := SearchNameValue.Value;

                ListBoxItem.AddObject(image);
                ListBoxItem.AddObject(label_1);
0
in default dbgrid we just need to set the datasource,  but i dont find any datasuorce in stringgrid (TMS component) properties anyone can help ?
0
Hi,

I have searched for good articles/tutorials/videos on using managed bindings with Delphi but other than this video: Introduction to MVVM - The Delphi Way https://www.youtube.com/watch?v=k64Skcn3d6E and this blog post: Using LiveBindings to Connect the UI to Objects https://www.adug.org.au/technical/vcl/using-livebindings-to-connect-the-ui-to-objects/ I haven't found much on using code based bindings with Delphi.

I would love to study the framework used for the BindingDemo in the video as a guide in creating/extending such a framework.

My idea is instead of using the live bindings designer in the IDE I would prefer the bindings to be explicitly specified in code:
FViewModel.bind(edtName, 'edtName.Text', 'Name'); // Bind to Properties
FViewModel.bind(edtEmail, 'edtEmail.Text', 'Email');
..
FViewModel.bind(btnSave, 'btnSave.Enabled', 'CanSave'); // Bind to Methods - through property

Open in new window


I am aware there are several more robust MVVM and ORM frameworks (mostly using attributes, not explicit binding) but a guide, tutorial or demo of creating a simple MVVM framework would be better for me to deepen my understanding of live bindings, generics and using Delphi's RTTI system.

I need a hold my hand example or any useful information on using managed bindings with Delphi.

Here is an extract from the screenshots of the video (with my ideas/queries) to get an overview of the code structure. (The author of the video indicated he would publish the source code but I have not found it)

Open in new window

0
i have DBgrid1 in form1,is it possible to get data from DBgrid1 and put in DBgrid2 in form2 ? so it will be like same data and same DBgrid in diffrent from
0
how to automatically adjust delphi DBgrid column ?
B4rry.png
0
Hi,

I have a doubt that If i need to place a GIF image in a corner of the form, what should i do?
I dont know how to insert the GIF image in delphi Form. Help me clarifying it with brief explanation                                                                

Thanks in advance...
0
Concerto Cloud for Software Providers & ISVs
LVL 4
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Hi all,

Was wondering if someone would be able to help me. I get memory leaks and access violation errors when closing my application after scanning a qrcode with Zbar. I will post my code. Any help would be appreciated.

unit ScanUnit;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, sSkinProvider, Vcl.ExtCtrls, sPanel, Vcl.StdCtrls, sLabel, acArcControls, Zbar;

type
  TScanForm = class(TForm)
    ScanPanel: TsPanel;
    sSkinProvider1: TsSkinProvider;
    sLabel1: TsLabel;
    sRoundBtn1: TsRoundBtn;
    Memo1: TMemo;
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    Label5: TLabel;
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure FormShow(Sender: TObject);
    procedure sRoundBtn1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  ScanForm: TScanForm;

  //QR Barcode
  device: pansichar;
  proc : zbar_processor_t;
  symbol:zbar_symbol_t;
  image : zbar_image_t ;
  TID:cardinal;
  hThread : THandle;

  procedure IntegrerFenetre(WindowHandle: THandle; Container: TWinControl);
  procedure Gestionnaire(img: zbar_image_t; userdata: Pointer); cdecl;

implementation

uses
  DMUnit, MainUnit;

{$R *.dfm}
procedure SplitString (var arr : array of String; str_src : string);
var
    delimeter : string;
    idx : integer;
    

Open in new window

0
Dear Exchange Experts Group
I need some help.
1) I need a VCL component in Delphi XE to do the following in outlook 2007:
  a) Change the "old code area" to "new code area"
Example Read all Outlook 2007 contacts and switch from (04111) to (01511).

Thanks in advance for your help. Thank you
0
I borrowed the code below from the internet and modified it slightly.  I admit that I don't really understand it.  
There is a problem in that when I pass it a shortcut file with a target file that points to "C:\Program Files\Serif\PagePlus\X9\Program\PagePlus.exe" it returns "C:\Program Files (x86)\Serif\PagePlus\X9\Program\PagePlus.exe", i.e. it is returning the pathname in the 32bit directory rather than the 64bit.
Is there a simple change that I could make to this code in order to make it work or can anybody suggest
I am using Delphi XE2 on Windows 7 Pro.
Thankyou

unit lnkInfoU;

{
Retrieves information from windows shortcut (.lnk) files
To use:
      just define a tshellLinkInfo record and call loadLink to fill in its values
}

interface

uses Winapi.ShlObj, Winapi.ActiveX, Winapi.Windows, System.Win.ComObj;

type
tshellLinkInfo = record
  pathname: string;
  arguments: string;
  description: string;
  workingDirectory: string;
  iconLocation: string;
  iconIndex: integer;
  showCmd: integer;
  hotKey: word;
 end;

function loadLink(linkname: string): TShellLinkInfo;

implementation

function loadLink(linkname: string): TShellLinkInfo;
var
UN: IUnknown;
SL: IShellLink;
PF: IPersistFile;
FD: TWin32FindData;
buffer: Array[0..MAX_PATH] of Char;
w: WideString;
i: integer;
wrd: Word;
begin
UN := CreateComObject(CLSID_ShellLink);
SL := UN as IShellLink;
PF := UN as IPersistFile;
w := linkname;
OleCheck(PF.Load(PwideChar(w), …
0
Hello,

I use Delphi Seattle. How can I make my Android app start automatically with the device?
I found some complicated Java coded examples on the net, is there a simpler solution?

Thank you.
0
I am using D7 and Rave. I have created a Rave report programmatically  which prints everything correctly, text and images in correct position and size. Before printing at the preview stage though all are correct but not the images size. It's a lot larger. What can I do to fix this?
Thanks in advance
0
How to connect to Access File Thru  Web site to Read and Writ using Delphi 10.2 tokyo
0

Delphi

59K

Solutions

16K

Contributors

Delphi is the most powerful Object Pascal IDE and component library for cross-platform Native App Development with flexible Cloud services and broad IoT connectivity. It provides powerful VCL controls for Windows 10 and enables FMX development for Windows, Mac and Mobile. Delphi is your choice for ultrafast Enterprise Strong Development™. Look for increased memory for large projects, extended multi-monitor support, improved Object Inspector and much more. Delphi is 5x faster for development and deployment across multiple desktop, mobile, cloud and database platforms including 32-bit and 64-bit Windows 10.