Page MenuHomeFeedback Tracker

[Feature Request] Return max ctrl width and height via ctrlPosition
New, NormalPublic

Description

For controls that support scrolls, we need to know the max ctrl width and max ctrl height for scrolls values to make sense, since they are percentages.

ctrlPosition _ctrl
returns
[x, y, w, h, maxW, maxH]

Alternatively, add a new command that does this, since I'm not sure if this will break backward compatibility.
New command syntax:

getCtrlViewPort _ctrl

returns the visible part of the control, based on scroll values:

[x1, y1, x2, y2]

/*
[x1, y1]
 ______________
 |             |
 |_____________|
               [x2, y2]
*/

The coordinate values are relative to the control itself. E.g. if scroll values are 0, the top [x1, y1] is [0, 0]

For controls that don't have sliders, it returns [0, 0, w, h]

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

Leopard20 updated the task description. (Show Details)Aug 10 2022, 2:10 PM
Leopard20 changed Severity from None to Feature.
Leopard20 changed Category from General to Scripting.
Leopard20 updated the task description. (Show Details)
Leopard20 updated the task description. (Show Details)
h- added a subscriber: h-.Aug 11 2022, 5:49 PM