TaskController 2.2.23
A light-weight UI that serves as the task/parameter front-end.
Loading...
Searching...
No Matches
Layout of Controller and Child UI

Defines major components in the controller and its sub-applications. This group encompasses functions and structures related to creating and managing the layout of user interfaces within the controller application. More...

Functions

HWND createCustomButton (int x, int y, HWND hwndParent, HMENU controlID, HINSTANCE hInstance)
 Creates a custom button control with specified parameters.
 
HWND createNumericEdit (int x, int y, HWND hwndParent, HMENU controlID, HINSTANCE hInstance)
 Creates a numeric edit control with a specified default value.
 
void initUILayout (HWND hwnd, HINSTANCE hInstance)
 Initializes the user interface layout and controls.
 
void createTargetChildWindow (HINSTANCE hInstance)
 Creates and initializes the child window for the target interface.
 
void createCalibrationChildWindow (HINSTANCE hInstance)
 Creates and initializes the child window for the calibration interface.
 
void updateNumericEditUI (HWND hParent)
 Updates the contents of numeric edit controls in the UI with values from TaskParameters.
 
void updateStringUI (HWND hParent)
 Updates the contents of string controls in the UI with values from TaskParameters.
 
void updateToggleUI ()
 Updates the LOGGING and PAUSED toggle button based on current values of logging and paused global variables.
 
void updateCalibrationUI (HWND hParent, CalibrationData *calData, TaskParameters *parameters)
 Updates the CALIBRATION window UI elements when a message is received.
 

Detailed Description

Defines major components in the controller and its sub-applications. This group encompasses functions and structures related to creating and managing the layout of user interfaces within the controller application.

Function Documentation

◆ createCalibrationChildWindow()

void createCalibrationChildWindow ( HINSTANCE hInstance)

Creates and initializes the child window for the calibration interface.

This function creates a child window for the calibration interface within the main application window.

Parameters
hInstanceThe instance handle of the module that contains the resource.

◆ createCustomButton()

HWND createCustomButton ( int x,
int y,
HWND hwndParent,
HMENU controlID,
HINSTANCE hInstance )

Creates a custom button control with specified parameters.

This function creates a custom button control with the given position, parent window, control ID, and instance handle. It also sets up the window procedure for the button to handle identified button messages.

Parameters
xThe x-coordinate of the button.
yThe y-coordinate of the button.
hwndParentThe handle to the parent window of the button.
controlIDThe menu item identifier of the button.
hInstanceThe instance handle of the module that contains the resource.
Returns
The handle to the newly created button control.

◆ createNumericEdit()

HWND createNumericEdit ( int x,
int y,
HWND hwndParent,
HMENU controlID,
HINSTANCE hInstance )

Creates a numeric edit control with a specified default value.

This function creates a numeric edit control with the specified parameters: position (y - vertical), parent window handle (hwndParent), control ID (controlID), and instance handle (hInstance) of the module. It sets an empty initial text value for the edit control and subclasses it to handle character input for numeric validation.

Parameters
xThe x-coordinate of the static-label to the left of the control.
yThe y-coordinate of the upper-left corner of the control.
hwndParentThe handle to the parent window.
controlIDThe identifier of the control, cast as HMENU type.
hInstanceThe handle to the instance of the module that created the control.
Returns
Returns the handle to the newly created numeric edit control.

◆ createTargetChildWindow()

void createTargetChildWindow ( HINSTANCE hInstance)

Creates and initializes the child window for the target interface.

This function creates a child window for the target interface within the main application window. The child window contains left and right panels with buttons and an edit control for displaying target information.

Parameters
hInstanceThe instance handle of the module that contains the resource.

◆ initUILayout()

void initUILayout ( HWND hwnd,
HINSTANCE hInstance )

Initializes the user interface layout and controls.

This function creates various UI elements such as buttons, text fields, and combo boxes, and arranges them within the main window to define the layout. It also sets up event handlers and default values for the UI controls.

Parameters
hwndThe handle for the window with layout to be created.
hInstanceThe instance handle of the module that contains the resource.

◆ updateCalibrationUI()

void updateCalibrationUI ( HWND hParent,
CalibrationData * calData,
TaskParameters * parameters )

Updates the CALIBRATION window UI elements when a message is received.

Parameters
hParentThe handle to the parent window containing the string edit or combobox controls.
calDataPointer to the calibration structure containing updated calibration data.
parametersPointer to the task parameters tructure.

◆ updateNumericEditUI()

void updateNumericEditUI ( HWND hParent)

Updates the contents of numeric edit controls in the UI with values from TaskParameters.

This function updates the text displayed in numeric edit controls in the UI with the corresponding values stored in the TaskParameters structure.

Parameters
hParentThe handle to the parent window containing the numeric edit controls.

◆ updateStringUI()

void updateStringUI ( HWND hParent)

Updates the contents of string controls in the UI with values from TaskParameters.

This function updates the text displayed in numeric edit controls in the UI with the corresponding values stored in the TaskParameters structure.

Parameters
hParentThe handle to the parent window containing the string edit or combobox controls.

◆ updateToggleUI()

void updateToggleUI ( )

Updates the LOGGING and PAUSED toggle button based on current values of logging and paused global variables.