1. Home
  2. /
  3. Docs
  4. /
  5. Articles Report Writer
  6. /
  7. Articles Report Designer ...
  8. /
  9. Common Dialog Controls

Common Dialog Controls

Step 1: Add a Dialog Page

  1. Open your report in the Articles Designer
  2. Click Report โ†’ New Dialog Page (or right-click in the Report Tree โ†’ Add Page โ†’ Dialog Page)
  3. A blank form designer appears

Step 2: Configure Dialog Properties

Select the dialog page and set properties:

Name: DialogPage1
Caption: "Report Parameters"
BorderStyle: bsDialog
Position: poScreenCenter
Width: 450
Height: 300

Step 3: Add Controls

From the Dialogs toolbar, drag controls onto the dialog:

  • Labels
  • Edit boxes
  • ComboBoxes
  • DBLookupComboBoxes
  • DateEdits
  • Buttons
  • CheckBoxes

Common Dialog Controls

Label

Properties:
  Name: Label1
  Caption: "Select Customer:"
  Left: 10
  Top: 10

Edit Box

Properties:
  Name: Edit1
  Text: ""
  Left: 100
  Top: 10
  Width: 200

ComboBox (Static Values)

Properties:
  Name: ComboBox1
  Items: (click [...] to add items)
    - Active
    - Inactive
    - All
  ItemIndex: 0  (selects first item)
  Left: 100
  Top: 40

DateEdit

Properties:
  Name: DateEdit1
  Date: (today's date)
  Left: 100
  Top: 70

Buttons

Always include OK and Cancel buttons:

Button1 Properties:
  Name: btnOK
  Caption: "OK"
  ModalResult: mrOk
  Default: True
  Left: 280
  Top: 250

Button2 Properties:
  Name: btnCancel
  Caption: "Cancel"
  ModalResult: mrCancel
  Cancel: True
  Left: 365
  Top: 250

Important: Setting ModalResult is critical – it tells the dialog what to do when clicked.