TaskController 2.2.23
A light-weight UI that serves as the task/parameter front-end.
Loading...
Searching...
No Matches
Controls - Main UI

Describes individual control elements on the main application interface. This group includes functions and structures related to buttons, combo boxes, labels, and other UI elements present on the main window of the controller application. More...

Functions

LRESULT CALLBACK WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 Window procedure for handling messages sent to the application window.
 
LRESULT CALLBACK LeftPanelWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 Window procedure for identified button controls in the left panel.
 
LRESULT CALLBACK RightPanelWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 Custom window procedure for numeric edit controls panel.
 

Variables

uint16_t set_index
 Counter that gives current grouping of trials (i.e. for 0 in MID-0 tag, or 1 in PRO-1 tag)
 
uint8_t logging
 Flag giving the current "logging" state (ON = 1 | OFF = 0).
 
uint8_t paused
 Flag giving the current "paused" state (PAUSED = 1 | RUNNING = 0).
 
uint16_t current_successes
 Tracks the total successful trials on the current set.
 
uint16_t current_attempts
 Tracks the total successful trials on the current set.
 
uint16_t total_successes
 Tracks the total successful trials on the current session.
 
uint16_t total_attempts
 Tracks the total successful attempted trials in the current session.
 
int randomTargetSet [8]
 Current order of group of 8 targets for keeping pseudo-randomized ordering.
 

Detailed Description

Describes individual control elements on the main application interface. This group includes functions and structures related to buttons, combo boxes, labels, and other UI elements present on the main window of the controller application.

UDP Network Structure

Function Documentation

◆ LeftPanelWndProc()

LRESULT CALLBACK LeftPanelWndProc ( HWND hwnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam )

Window procedure for identified button controls in the left panel.

This function handles messages for button controls, specifically WM_CTLCOLORBTN, to customize their appearance based on their control ID.

Parameters
hwndThe handle to the button window.
uMsgThe message to be processed.
wParamAdditional message-specific information.
lParamAdditional message-specific information.
Returns
The result of the message processing and depends on the message being handled.

◆ RightPanelWndProc()

LRESULT CALLBACK RightPanelWndProc ( HWND hwnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam )

Custom window procedure for numeric edit controls panel.

This function serves as the window procedure for numeric edit controls in the right panel. It filters input to allow only digits and the decimal point, rejecting all other characters.

Parameters
hwndThe handle to the numeric edit control container panel.
uMsgThe message identifier.
wParamAdditional message information. The contents of this parameter depend on the value of the uMsg parameter.
lParamAdditional message information. The contents of this parameter depend on the value of the uMsg parameter.
Returns
Returns the result of the message processing and depends on the message sent.

◆ WindowProc()

LRESULT CALLBACK WindowProc ( HWND hwnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam )

Window procedure for handling messages sent to the application window.

Parameters
hwndHandle to the window.
uMsgMessage identifier.
wParamAdditional message information. The contents of this parameter depend on the value of the uMsg parameter.
lParamAdditional message information. The contents of this parameter depend on the value of the uMsg parameter.
Returns
Returns zero if the message was processed, or a nonzero value if the message was ignored.

Variable Documentation

◆ current_attempts

uint16_t current_attempts
extern

Tracks the total successful trials on the current set.

◆ current_successes

uint16_t current_successes
extern

Tracks the total successful trials on the current set.

◆ logging

uint8_t logging
extern

Flag giving the current "logging" state (ON = 1 | OFF = 0).

◆ paused

uint8_t paused
extern

Flag giving the current "paused" state (PAUSED = 1 | RUNNING = 0).

◆ randomTargetSet

int randomTargetSet[8]
extern

Current order of group of 8 targets for keeping pseudo-randomized ordering.

◆ set_index

uint16_t set_index
extern

Counter that gives current grouping of trials (i.e. for 0 in MID-0 tag, or 1 in PRO-1 tag)

◆ total_attempts

uint16_t total_attempts
extern

Tracks the total successful attempted trials in the current session.

◆ total_successes

uint16_t total_successes
extern

Tracks the total successful trials on the current session.