Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there a way to get the current graphics cursor position?
#1
I've been playing with the DRAW command lately.  It's such a powerful command, and one I haven't fully explored/learned.   I know you can set the graphics cursor position using PSET, and also using commands in the DRAW statement, but I was wondering how to get where the current graphics cursor position DRAW is at?  For instance, in this code below how would I know when DRAWs graphics cursor position goes off screen here so I could reset it?

(BTW, @dbox, running this in QBJS, the output is different)

- Dav

Code: (Select All)

Screen _NewImage(600, 600, 32)

Dim p, p$, ang, a$ '<- for QBJS compat

Do
    p = p + .05
    p$ = "D" + Str$(p)

    ang = ang + 10
    a$ = "TA" + Str$(ang)

    Draw p$ + a$

    _Limit 100

Loop

Find my programs here in Dav's QB64 Corner
Reply


Messages In This Thread
Is there a way to get the current graphics cursor position? - by Dav - 09-09-2023, 08:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mac current release sigabrt BlameTroi 3 221 02-05-2026, 02:26 PM
Last Post: a740g
  simple 3d starfield & wireframe or vector graphics revisited madscijr 5 266 01-31-2026, 09:41 PM
Last Post: Pete
  WinAPI Cursor refuses to hide. Pete 10 2,138 12-29-2025, 05:44 PM
Last Post: SpriggsySpriggs
  is there any way to position the inputbox$ window? madscijr 21 1,643 11-06-2025, 09:54 PM
Last Post: madscijr
  CAN someone please get the graphics in this to work? Dragoncat 3 638 05-07-2025, 12:17 PM
Last Post: bplus

Forum Jump:


Users browsing this thread: 1 Guest(s)