In Xojo 2019 r3.1 on Windows 10, I need to use a definition of RECT for declares when drawing tooltips.
I must define a RECT, as Xojo.RECT is already defined by class Xojo.RECT in API2 (this did not happen in API1).
Here is how I define a RECT:
Left as Int32
Top as Int32
Right as Int32
Bottom as Int32
The error is:
Redefined identifier. This name is already defined by class Xojo.Rect. Left as Int32
The next step was then to remove the RECT definition, and replace with Xojo.Rect. I then get the error:
Structures cannot contain Xojo.Rect fields. MyRect as Xojo.Rect
Is there a way to either:
- use Xojo.Rect in a structure
- ignore Xojo.Rect when using declares
As a workaround, I can redefine RECT as RECT1 and ignore Xojo.RECT which will allow me to use RECT in a structure.
Any helpful hints? Thanks.
(I asked this question on the other forums also)