How to allow transparent zoom while useing GRRead?

James Maeding

Usenet Archive
Joined
Jul 7, 2003
Messages
331
Reaction score
0
We did that pick text or type value routine a while back on this NG. Well a user asked me why it crashed on a transparent command.

try this:

(grread NIL 14 2)

note that if you pick a toolbar button, like the zoom out one, it gives back something like:
(11 3402)

So how would I allow the transparent command to run within a lisp? There is no way to detect what the toolbar button command was so I cannot mimic it in my routine. I usually put this kind of stuff in a while loop and keep looping if I dont get what I want. When I tried that, it simply ignored the zoom toolbar pick and the grread continued.

So it doesnt crash on a toolbar pick, but the button does not run, the user has to zoom or pan with the mouse wheel.
thx

James Maeding
Civil Engineer/Programmer
 
Did it cause a regen?

James Maeding said:
We did that pick text or type value routine a while back on this NG. Well a user asked me why it crashed on a transparent command.

try this:

(grread NIL 14 2)

note that if you pick a toolbar button, like the zoom out one, it gives back something like:
(11 3402)

So how would I allow the transparent command to run within a lisp? There is no way to detect what the toolbar button command was so I cannot mimic it in my routine. I usually put this kind of stuff in a while loop and keep looping if I dont get what I want. When I tried that, it simply ignored the zoom toolbar pick and the grread continued.

So it doesnt crash on a toolbar pick, but the button does not run, the
user has to zoom or pan with the mouse wheel.
 
nupe.
it did nothing. I can see the return value if I debug though.

I checked some previous threads on this and looks like John Uhden is at the bleeding edge of things. I have not tried his code though as I am short on time...

"Rudy Tovar"
|>Did it cause a regen?
|>
|>|>> We did that pick text or type value routine a while back on this NG. |>> Well a user asked me why it crashed on a transparent command. |>> |>> try this:
|>>
|>> (grread NIL 14 2)
|>>
|>> note that if you pick a toolbar button, like the zoom out one, it gives |>back something like:
|>> (11 3402)
|>>
|>> So how would I allow the transparent command to run within a lisp? |>> There is no way to detect what the toolbar button command was so I cannot |>mimic it in my routine. |>> I usually put this kind of stuff in a while loop and keep looping if I |>dont get what I want. |>> When I tried that, it simply ignored the zoom toolbar pick and the grread |>continued. |>> |>> So it doesnt crash on a toolbar pick, but the button does not run, the |>user has to zoom or pan with the mouse wheel. |>> thx |>> |>> |>> James Maeding |>> Civil Engineer/Programmer |>

James Maeding
Civil Engineer/Programmer
 
James:

You can look back a while where I had tried a GRPick routine that would (er, was supposed to) properly interpret menu picks within a (grread) loop. Never reached 100% satisfaction; then again I probably could have figured it out, but somehow work always gets in the way. :/

Meanwhile, why not just set up the PC's with wheelmice and MBUTTONPAN and let 'em roll while your program constantly checks out (getvar "viewsize") and (getvar "viewctr")?

BTW, did you solve that list interpretation problem?

James Maeding said:
We did that pick text or type value routine a while back on this NG. Well a user asked me why it crashed on a transparent command.

try this:

(grread NIL 14 2)

note that if you pick a toolbar button, like the zoom out one, it gives back something like:
(11 3402)

So how would I allow the transparent command to run within a lisp? There is no way to detect what the toolbar button command was so I cannot mimic it in my routine. I usually put this kind of stuff in a while loop and keep looping if I dont get what I want. When I tried that, it simply ignored the zoom toolbar pick and the grread continued.

So it doesnt crash on a toolbar pick, but the button does not run, the user
has to zoom or pan with the mouse wheel.
 
Right, I telling users to use the mouse currently. Its amazing to me that users actually admit they pick buttons to zoom around. I have told them a million times to use key-ins or the mouse. So for once, I have forced it my way!
not too bad...

"John Uhden"
|>James:
|>
|>You can look back a while where I had tried a GRPick routine that would (er, was |>supposed to) properly interpret menu picks within a (grread) loop. Never |>reached 100% satisfaction; then again I probably could have figured it out, but |>somehow work always gets in the way. :/ |> |>Meanwhile, why not just set up the PC's with wheelmice and MBUTTONPAN and let |>'em roll while your program constantly checks out (getvar "viewsize") and |>(getvar "viewctr")? |> |>BTW, did you solve that list interpretation problem?

James Maeding
Civil Engineer/Programmer
 

Member Recommended

Back
Top