Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:14 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : GUI CURSOR issue

Author Message
frnno967
Senior Member

Joined: 02/10/2020
Location: United States
Posts: 104
Posted: 03:39am 29 Jan 2021
Copy link to clipboard 
Print this post

In the user manual it states that GUI CURSOR is invoked by using this format:
GUI CURSOR ON [cursorno] [x, y] [cursorcolour]

but when I type GUI CURSOR ON 1 200,400 I get an "ARGUMENT COUNT" error.
When I type it as GUI CURSOR ON 1, 200, 400 then it works. Is this a typo in the manual?

Also, is it expected behavior that if the coordinates are updated while it is hidden then it will suddenly reappear at the new location? I was expecting that if the coordinates were updated while the cursor was hidden then it would stay hidden until GUI CURSOR SHOW was executed, but the manual did not make either outcome clear.

Thank you.
Jay Crutti: Ham Radio Operator, K5JCJ. Computer Enthusiast. Musician. Engineer.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 03:45am 29 Jan 2021
Copy link to clipboard 
Print this post

It is an error in the manual.

It should read:
GUI CURSOR ON [cursorno [, x, y [,cursorcolour] ] ]

Jim
Edited 2021-01-29 14:04 by TassyJim
VK7JH
MMedit
 
RetroJoe

Senior Member

Joined: 06/08/2020
Location: Canada
Posts: 290
Posted: 07:38am 29 Jan 2021
Copy link to clipboard 
Print this post

Guys, I can't help but notice you both have ham radio call signs.

Is that just a coincidence, or is "The Back Shed" some sort of oblique reference to a "radio shack"? I've always observed the strong correlation between interests in music and computing, but maybe ham radio fits in there somewhere too :)

In any case, I've always been a bit intrigued by this venerable hobby - can you recommend some good newbie resources?
Enjoy Every Sandwich / Joe P.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 08:49am 29 Jan 2021
Copy link to clipboard 
Print this post

Radio amateurs are people who like to dabble with electronics.
That makes it more likely to find a high percentage of us on sites like this.
I am not very active in the field now but still do a bit.

In Canada the main body are at https://www.rac.ca/


Jim
VK7JH
MMedit
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 09:17am 29 Jan 2021
Copy link to clipboard 
Print this post

Like a lot of others, I've not been on the air for years (I'm still licenced though). My main interest was in the electronics rather than operating anyway, although I still have a couple of transceivers (HF & VHF). HF is pretty horrid round here now. Noisy and I can't get a decent aerial up. :(

I got hooked on computers with the Nascom-1 and I'm afraid the radio side took a nosedive from then on. :)

I'm hoping to join the merry band of CMM2 owners soon (several bits on order & I have a PCB), but in the meantime the priority is working on a 28-pin MM with a LCD display for the instrumentation on a "lab" power supply that I'm building at the moment.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
frnno967
Senior Member

Joined: 02/10/2020
Location: United States
Posts: 104
Posted: 05:39pm 29 Jan 2021
Copy link to clipboard 
Print this post

I'm still active on HF and VHF/UHF here in the Dallas, Texas area. Amateur radio is just another extension of my interest in electronics and computers. It offers an outlet to experiment and test designs of things and see the outcome of my efforts. The CMM2 has been a great addition to that because not only is it a great software platform, but the hardware is very flexible as well. What a great time to be alive.

And amateur radio is a fun hobby also due to the camaraderie, the mystery, and challenges. I strongly suggest getting a license and trying it out. It's such a diverse hobby that there's always something for someone in it!
Jay Crutti: Ham Radio Operator, K5JCJ. Computer Enthusiast. Musician. Engineer.
 
frnno967
Senior Member

Joined: 02/10/2020
Location: United States
Posts: 104
Posted: 05:40pm 29 Jan 2021
Copy link to clipboard 
Print this post

  frnno967 said  Is it expected behavior that if the coordinates are updated while it is hidden then it will suddenly reappear at the new location? I was expecting that if the coordinates were updated while the cursor was hidden then it would stay hidden until GUI CURSOR SHOW was executed, but the manual did not make either outcome clear.


Can anyone respond to this question?
Jay Crutti: Ham Radio Operator, K5JCJ. Computer Enthusiast. Musician. Engineer.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 06:15pm 29 Jan 2021
Copy link to clipboard 
Print this post

  Quote  Is it expected behavior that if the coordinates are updated while it is hidden then it will suddenly reappear at the new location?


Yes
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1132
Posted: 06:20pm 29 Jan 2021
Copy link to clipboard 
Print this post

I just tried the following from the prompt:
> gui on
> gui cursor 100,100
> gui cursor cursor hide
> gui cursor 200,200

Alas, the pointer reappeared when I typed the last line. I don't know if this is the preferred behaviour.
Visit Vegipete's *Mite Library for cool programs.
 
frnno967
Senior Member

Joined: 02/10/2020
Location: United States
Posts: 104
Posted: 06:47pm 29 Jan 2021
Copy link to clipboard 
Print this post

  vegipete said  Alas, the pointer reappeared when I typed the last line. I don't know if this is the preferred behaviour.


I know, seemed strange to me too if that's purposeful. It seems like it would be much more useful if the coordinates could be updated while hidden, but those are the rules! :)
Jay Crutti: Ham Radio Operator, K5JCJ. Computer Enthusiast. Musician. Engineer.
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1132
Posted: 07:14am 04 Feb 2021
Copy link to clipboard 
Print this post

I'm going to request that the mouse pointer NOT be automagically re-displayed when the position is changed.

Why?

In my experience, if the screen behind the cursor is changed, when the cursor moves, the old image is replaced, not the changed one. This leaves a mess. The solution is to 'GUI CURSOR HIDE' before drawing on the screen, then 'GUI CURSOR SHOW' to redisplay the cursor when the drawing is done.

This works great until there is an interrupt involved. If an interrupt is used to update the cursor position periodically, the ISR could update the position of the cursor and redisplay it while the main routine is updating the screen. Mess might ensue.

Some sort of flag could be used, perhaps the main routine setting a 'cursor hidden' flag, which the ISR checks and uses to re-hide the cursor after moving it, but that seems like a hacky sort of solution. I think that simply leaving the cursor hidden until GUI CURSOR SHOW is executed would be a better solution.
Visit Vegipete's *Mite Library for cool programs.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025