Visual Basic Customization

Visual Basic Customization

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

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

176 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,583
Registered: ‎06-29-2007
Message 2 of 2 (168 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
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.