Skip to content

Confusing issue regarding tagRECT #3

@johnsone006

Description

@johnsone006

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions