Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can I hide the crosshairs?

8 REPLIES 8
Reply
Message 1 of 9
jefries1683
6550 Views, 8 Replies

Can I hide the crosshairs?

In several of my functions I use getstring to prompt the user for some input.  This works fine, however sometimes the user doesn't realize the command is still active because the crosshairs are still on-screen.  They attempt to continue working but are unable to select anything.  I even catch myself doing this.

 

Is there a way to temporarily deactivate or hide the crosshairs?

 

Thanks,

Jeffrey Ries

Novi, MI

8 REPLIES 8
Message 2 of 9
Anonymous
in reply to: jefries1683

The only thing I could think of at the moment is set your CURSORSIZE variable to a small number and then have it reset when you exit the program.  HTH.

Message 3 of 9
Anonymous
in reply to: jefries1683

Just thought of something else but I don't know if it is possible since currently I am not aware of any variables to control it.  But here it goes.  Set the color of the crosshairs to the same color as your background and the crosshairs should be "invisible".

Message 4 of 9
scot-65
in reply to: jefries1683

Also look into the possibility to turn on DYNMODE, then reset when finished.

(I think there are 2 DYN switches to investigate...)

 

???


Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.


Message 5 of 9
Shneuph
in reply to: jefries1683

One option is to use the (textscr) and (graphscr) functions before and after the (getstring) one.  That way it opens the command line window and the user will be more likely to see the prompt.

---sig---------------------------------------
'(83 104 110 101 117 112 104 64 71 109 97 105 108 46 99 111 109)
Message 6 of 9
Anonymous
in reply to: jefries1683

Have you tried turning the croshair color to that of the background?

Message 7 of 9
Anonymous
in reply to: jefries1683
Message 8 of 9
Kent1Cooper
in reply to: jefries1683

I like the idea of setting the CURSORSIZE System Variable very small, too [1 works pretty well], and if you want it to look even more different than usual, consider also setting the PICKBOX System Variable to 1 or even 0 [assuming you normally have it at something larger like the default 3].

 

Or, if you really want to be obnoxious, throw up an

 

(alert "Answer the prompt at the Command Line, you idiot!")

 

which, while it won't affect the crosshairs, will require the User to pick OK in the alert box before they can do anything else, so they'll be forced to be aware that the routine that's running wants some input.

Kent Cooper, AIA
Message 9 of 9
jefries1683
in reply to: Kent1Cooper

I was once told of a way to do this - I believe it was through the use of grread.  Unfortunately, I had no use for it at the time so I eventually forgot it.

 

I'm going to give the background color + size trick a shot.

 

My fear with this method is this, what happens when eventually my command fails leaving the crosshairs invisible?  I do use error trapping, but sometimes an error gets through.  I suppose this could happen with any method so no harm right?

 

Thank you to everyone for your help,

Jeff

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost