To let your end-users combine SQL query text editing with visual query building, add the TextBox or any other text editor control to a form. In the case of using the TextBox control, you must set its MultiLine property to True.
Now you should establish a connection between the ActiveQueryBuilderX and the TextBox controls.
Enter the following code to Leave event of TextBox control:
ActiveQueryBuilderX1.SQL = TextBox1.Text
Enter the following code to the OnSQLChanged event of ActiveQueryBuilderX control:
TextBox.Text := ActiveQueryBuilderX1.FormattedSQL