VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Why can't I zoom or pan when an form is active?

1 REPLY 1
SOLVED
Reply
Message 1 of 2
lanieuwe
457 Views, 1 Reply

Why can't I zoom or pan when an form is active?

When an macro of a Lisp is active I can zoom and pan in a drawing. I press Escape to quit.

 

Why can't I do that when a form is active in vba?

 

Is that only because Showmodal is on?

 

gr. Laszlo

1 REPLY 1
Message 2 of 2
Alfred.NESWADBA
in reply to: lanieuwe

Hi,

 

>> Is that only because Showmodal is on?

Exactly that is the point.

 

If AutoCAD has a child-form with option "modal" opened, AutoCAD give this form the complete exclusive focus for mouse and keyboard. As long as this form is open you have no chance to control the editor-window by mouse or by keyboard (as long as you don't catch mouse-events and forward it to the editor-window ... would be a havy job to do 😉 ).

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)

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

Post to forums  

Autodesk Design & Make Report

”Boost