Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6546919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:46:01+00:00 2026-05-25T11:46:01+00:00

Is it possible to do LiveBinding between controls, i.e. take 2 edit boxes and

  • 0

Is it possible to do LiveBinding between controls, i.e. take 2 edit boxes and get the result of adding their contents together into a label. I’m sure it is, I just don’t know where to start

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:46:02+00:00Added an answer on May 25, 2026 at 11:46 am

    Have a look at the samples. SVN repository URL: https://radstudiodemos.svn.sourceforge.net/svnroot/radstudiodemos/branches/RadStudio_XE2/LiveBindings

    An example:

    —– Unit1.dfm —–

    object Form1: TForm1
      Left = 0
      Top = 0
      Caption = 'Form1'
      ClientHeight = 286
      ClientWidth = 426
      Color = clBtnFace
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'Tahoma'
      Font.Style = []
      OldCreateOrder = False
      PixelsPerInch = 96
      TextHeight = 13
      object Label1: TLabel
        Left = 8
        Top = 62
        Width = 48
        Height = 13
        Caption = 'Edit1Edit2'
      end
      object Edit1: TEdit
        Left = 8
        Top = 8
        Width = 121
        Height = 21
        TabOrder = 0
        Text = 'Edit1'
        OnChange = EditChange
      end
      object Edit2: TEdit
        Left = 8
        Top = 35
        Width = 121
        Height = 21
        TabOrder = 1
        Text = 'Edit2'
        OnChange = EditChange
      end
      object BindingsList1: TBindingsList
        Methods = <>
        OutputConverters = <>
        UseAppManager = True
        Left = 20
        Top = 5
        object BindExpressionLabel11: TBindExpression
          Category = 'Binding Expressions'
          ControlComponent = Label1
          SourceComponent = BindScope1
          SourceExpression = 'Edit1.Text + Edit2.Text'
          ControlExpression = 'Caption'
          NotifyOutputs = False
          Direction = dirSourceToControl
        end
      end
      object BindScope1: TBindScope
        Left = 192
        Top = 16
      end
    end
    

    —– Unit1.pas —–

    unit Unit1;
    
    interface
    
    uses
      Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
      Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.Bind.EngExt, Vcl.Bind.DBEngExt,
      System.Rtti, System.Bindings.Outputs, Vcl.Bind.Editors, Data.Bind.Components,
      Vcl.StdCtrls;
    
    type
      TForm1 = class(TForm)
        Edit1: TEdit;
        Edit2: TEdit;
        Label1: TLabel;
        BindingsList1: TBindingsList;
        BindExpressionLabel11: TBindExpression;
        BindScope1: TBindScope;
        procedure EditChange(Sender: TObject);
      private
        { Private declarations }
      public
        { Public declarations }
      end;
    
    var
      Form1: TForm1;
    
    implementation
    
    {$R *.dfm}
    
    uses
      System.Bindings.Helper;
    
    procedure TForm1.EditChange(Sender: TObject);
    begin
      TBindings.Notify(Sender, 'Text');
    end;
    
    end.
    

    How to use the IDE designer to produce the result:

    • put two edits (Edit1, Edit2), a label (Label1) and a TBindScope (BindScope1) on your form (Form1).
    • create an event handler for both edits’ OnChange event (EditChange).
    • select Label1, expand the drop-down of LiveBindings property, select ‘New Live Binding…’, select TBindExpression
    • edit properties of the newly created BindExpressionLabel11: assign Caption to ControlExpression, BindScope1 to SourceComponent, Edit1.Text + Edit2.Text to SourceExpression
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Difference between Convert.tostring() and .tostring() Hi Carrying on from this question What
Possible Duplicate: what is the difference between #include <filename> and #include “filename” Why do
Possible Duplicate: Parse string into argv/argc I'm trying to write a fake shell using
Possible Duplicate: What's the difference between a temp table and table variable in SQL
Possible Duplicate: What do two question marks together mean in C#? Hi, I was
Possible Duplicate: How to store an IP in mySQL I want to get the
Possible Duplicate: Split A4 PDF page into two A5 and back again I have
Possible Duplicate: comparing contents of two files using python I have a file name
Possible Duplicate: Difference between .Net4 Client Profile and Full Framework download I am writing
Possible Duplicate: Why not use tables for layout in HTML? Under what conditions should

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.