Visual Basic Customization

Visual Basic Customization

Reply
Valued Contributor
lanieuwe
Posts: 57
Registered: ‎10-26-2011
Message 1 of 2 (175 Views)
Accepted Solution

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

175 Views, 1 Replies
12-20-2012 10:35 AM

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

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 :smileywink: ).

 

- alfred -

*Expert Elite*
Alfred.NESWADBA
Posts: 9,371
Registered: ‎06-29-2007
Message 2 of 2 (167 Views)

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

12-20-2012 01:15 PM 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 :smileywink: ).

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!