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

Confusing issue regarding tagRECT #3

Open
johnsone006 opened this issue Apr 21, 2024 · 0 comments
Open

Confusing issue regarding tagRECT #3

johnsone006 opened this issue Apr 21, 2024 · 0 comments

Comments

@johnsone006
Copy link

So, I am currently programming an application that automatically opens, screenshots, and closes .nif files by opening the files in a program called NifSkope that you can find on here (specifically, Nifskope dev 2 version 7). TLDR: I need to allow the user to automatically adjust the camera in Nifskope because the .nifs don't always load in an ideal position. That means I need access to the buttons.
So I have written code to retrieve each button in an element array, but for some confusing reason, when I attempt to get the bounding rectangle property of a button, instead of returning a tagRECT, it returns an array of doubles. The documentation says that tagRECTS has four integer values, so it's confusing as to why it would return a double array. But it's a bad thing-integers are not floating point numbers, but are used as parameters for both points, rectangles and sizes in c#, for one. Doubles aren't. For another, it's causing a runtime exception. I'd appreciate some explanation as to what is occurring. I'm writing this in c# using windows forms.

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

No branches or pull requests

1 participant