Author Topic: Alternative to grread  (Read 4155 times)

0 Members and 1 Guest are viewing this topic.

pkohut

  • Bull Frog
  • Posts: 483
Alternative to grread
« on: March 03, 2011, 01:10:45 PM »
Is the a way to query the mouse position in Autolisp besides using grread? A call to grread doesn't return until it has something to report, which interrupts the simulations run loop.
New tread (not retired) - public repo at https://github.com/pkohut

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: Alternative to grread
« Reply #1 on: March 03, 2011, 02:37:46 PM »
OpenDCL has a function dcl_GetMouseCoords which returns a 2d point relative to the Windows Coordinate Display.

Hey, look at that, another good reason to switch to OpenDCL!  8-)
James Buzbee
Windows 8

pkohut

  • Bull Frog
  • Posts: 483
Re: Alternative to grread
« Reply #2 on: March 03, 2011, 02:45:50 PM »
Hey thanks for the tip. One day I'll have to check out OpenDCL.
New tread (not retired) - public repo at https://github.com/pkohut

Lee Mac

  • Seagull
  • Posts: 12916
  • London, England
Re: Alternative to grread
« Reply #3 on: March 03, 2011, 02:54:49 PM »
Not that I know of in pure AutoLISP, but I'd be happily mistaken since it would be useful for DCL dialog positioning.

GDF

  • Water Moccasin
  • Posts: 2081
Re: Alternative to grread
« Reply #4 on: March 03, 2011, 07:36:36 PM »
Not that I know of in pure AutoLISP, but I'd be happily mistaken since it would be useful for DCL dialog positioning.

http://www.theswamp.org/index.php?topic=7666.0

Check out this routine to record dcl dialog box position on the screen.
DCL is your friend...LOL
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

Lee Mac

  • Seagull
  • Posts: 12916
  • London, England
Re: Alternative to grread
« Reply #5 on: March 03, 2011, 07:39:23 PM »
Not that I know of in pure AutoLISP, but I'd be happily mistaken since it would be useful for DCL dialog positioning.

http://www.theswamp.org/index.php?topic=7666.0

Check out this routine to record dialog box position on the screen.

Remembering Dialog Position is very possible:

http://lee-mac.com/dialogposition.html

The difficulty is finding the mouse position so that the dialog can be displayed at the mouse...

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: Alternative to grread
« Reply #6 on: March 04, 2011, 10:38:17 AM »
Quote
The difficulty is finding the mouse position so that the dialog can be displayed at the mouse...

Imagine having a small compact form that you can dispay right at the mouse coordinates that can act like a pop menu but can have text boxes, check boxes, radio buttons, tree controls, dropdown boxes etc.

I have a routine for AutoCAD Architecture: a toolbar with buttons for each object type, door, wall, etc.  When the user picks the button a form is displayed at the button (like a pop menu) but has a list box with all the available styles.  Double click the style you want, the form goes away and that command is fired with that style active.  Saves a ton of drafting time.

Just sayin.  :wink:
James Buzbee
Windows 8

Lee Mac

  • Seagull
  • Posts: 12916
  • London, England
Re: Alternative to grread
« Reply #7 on: March 04, 2011, 11:22:38 AM »
All created with OpenDCL I would assume?  :evil: