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

PictureBox.Line -Step not working #1554

Closed
sunsetandlabrea opened this issue May 16, 2023 · 1 comment
Closed

PictureBox.Line -Step not working #1554

sunsetandlabrea opened this issue May 16, 2023 · 1 comment

Comments

@sunsetandlabrea
Copy link

Describe the bug

The Step keyword in the PictureBox (and presumably other graphics contexts) doesn't seem to work.

To Reproduce

I believe the following should be equivalent, but gives different results.

picVScale.Line (XPos, YPos)-(XPos - 500, YPos)
picVScale.CurrentX = XPos
picVScale.CurrentY = YPos
picVScale.Line -Step(-500, 0)

Desktop (please complete the following information):

  • OS: Windows 10
  • twinBASIC compiler version: beta 302

Additional context

In Line 1236 in the Public Sub Line you get the current position as GetCurrentPositionEx(Me.hDC, curPos).

However setting CurrentX and CurrentY, only sets an InternalCurrentX and InternalCurrentY, and doesn't call the equivalent Windows Set function. Presumably MoveToEx.

@WaynePhillipsEA
Copy link
Collaborator

Fixed in BETA 306, thanks!

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

2 participants