Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lua - get field co-ordinates #4346

Closed
robthomson opened this issue Aug 6, 2024 · 1 comment
Closed

lua - get field co-ordinates #4346

robthomson opened this issue Aug 6, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@robthomson
Copy link
Collaborator

Please can we get a feature that returns a fields current x/y/w/h elements.

e.g.

local myField = form.addNumberField(line, nil, minValue, maxValue, function() return value end, function(newValue) value = newValue end)

x,y,w,h = myfield:ordinates()

This returns the current co-ordinates on screen.

Doing this will enable the forms to have some funky stuff where you detect the touch input on a part of the form.

@bsongis-frsky bsongis-frsky self-assigned this Aug 14, 2024
@bsongis-frsky bsongis-frsky added this to the 1.5.14 milestone Aug 14, 2024
@bsongis-frsky bsongis-frsky added the enhancement New feature or request label Aug 14, 2024
@bsongis-frsky
Copy link
Collaborator

rect function added to all form fields
available in the next nightlies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants