From 797b7e884ec648ce4c2b174e0a63c9e77097becc Mon Sep 17 00:00:00 2001 From: dsiders Date: Sun, 27 Aug 2023 05:43:29 +0100 Subject: [PATCH] Docs: LCL/taskdlgemulation. Updates content in the TLCLTaskDialog.SetupControls topic. (cherry picked from commit a1e5829e4445a09b05862429b0cffd8dc56bc171) --- docs/xml/lcl/taskdlgemulation.xml | 81 ++++++++++++++++--------------- 1 file changed, 43 insertions(+), 38 deletions(-) diff --git a/docs/xml/lcl/taskdlgemulation.xml b/docs/xml/lcl/taskdlgemulation.xml index a5f1c54f04..a2d35096e4 100644 --- a/docs/xml/lcl/taskdlgemulation.xml +++ b/docs/xml/lcl/taskdlgemulation.xml @@ -446,85 +446,90 @@ Not used in the method. - -Configures and initialize properties and controls used on the emulated task +Configures and initializes properties and controls used on the emulated task dialog form.

SetupControls is a method used to configure / initialize controls -on the emulated dialog form using the properties from the -TTaskDialog instance where the form is displayed. -

-

-SetupControls is called from the Execute method for the emulated task dialog. +It create and populates three (3) panels with the controls needed for the +dialog. The top panel holds the main icon, title, text, and expanded text. The +middle panel contains any radio buttons, command link buttons, query controls, +or the progress bar for the dialog. The bottom panel contains the remainder of +the controls on the dialog form including the expand /collapse button, +verification check box, and footer text. +

+

+A timer enabled for the form is created, initialized, and started in the method. +

+

+SetupControls calculates the width needed for the dialog form. It uses the +length of common elements (like Title, Text, and the cumlative length for +button captions) when an explict Width has not been assigned for the task +dialog. A minimum width of 120 pixels is assumed, but common calculated widths +include 300, 420, amd 480 pixels. A minimum height of 200 pixels is assumed. +

+

+SetupControls is called from the Execute method before the ShowModal method is +called for the emulated task dialog.

+TCustomTaskDialog +TTaskDialog +TCustomForm.ShowModal