Page 1 of 1

Windows SetFocus

Posted: Thu Jun 03, 2021 10:31 am
by DenisSilveira
Is ther a way to overcome this situation:

Intellicad does not receive focus until the editor was clicked. This was a bit troublesome as it requires an additional mouse click. The way to overcome it was to either call the "SetFocus" Win32 API through a dllimport or to use an internal undocumented method : "Internal.Utils.SetFocusToDwgView".

But seems to be tha Icad doesn't have anyone Focus function ...

Does anybody has an alternative ??

Re: Windows SetFocus

Posted: Tue Jun 08, 2021 11:27 pm
by DenisSilveira
something similar to this :

Code: Select all

Autodesk.AutoCAD.ApplicationServices.Application.MainWindow.Focus();
or some code to same operation.

Re: Windows SetFocus

Posted: Wed Jun 09, 2021 2:45 am
by QuanNguyen
Unlucky for us, it seems that IntelliCad does have a similar function.