Message 1 of 13
AcadX
Not applicable
01-18-2001
01:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
does anyone use this? I just downloaded some samples and such from the
website.
I am trying to work with the InputPoint example.
I have added code to put the form always on top, this way I can have acad
maximized and
still see the form.
the form is on top with respect to all apps except ACAD.
Does the AcadX dll make it impossible to have a form always on top?
VB6 SP4
A2K
WinNT 4.0 SP6
I used the following to put the form on top.
Option Explicit
Public Acad As AcadApplication
Public Doc As AcadDocument
Public AcadX As AcadXApplication
Public WithEvents InputMan As AcadXInputManager
Public IsDragging As Boolean
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long,
ByVal hWndInsertAfter As Long, _
ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long,
ByVal wFlags As Long) As Long
Private Const HWND_TOPMOST = -1
Private Const SWP_NOMOVE = &H2
Private Const SWP_NOSIZE = &H1
Private Sub Form_Load()
Set Acad = GetObject(, "AutoCAD.Application.15")
Set Doc = Acad.ActiveDocument
Set AcadX = Acad.GetInterfaceObject("AcadX.Application")
Set InputMan = Acad.GetInterfaceObject("AcadX.InputManager")
InputMan.InputPointEventsEnabled = True
SetWindowPos Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
End Sub
website.
I am trying to work with the InputPoint example.
I have added code to put the form always on top, this way I can have acad
maximized and
still see the form.
the form is on top with respect to all apps except ACAD.
Does the AcadX dll make it impossible to have a form always on top?
VB6 SP4
A2K
WinNT 4.0 SP6
I used the following to put the form on top.
Option Explicit
Public Acad As AcadApplication
Public Doc As AcadDocument
Public AcadX As AcadXApplication
Public WithEvents InputMan As AcadXInputManager
Public IsDragging As Boolean
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long,
ByVal hWndInsertAfter As Long, _
ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long,
ByVal wFlags As Long) As Long
Private Const HWND_TOPMOST = -1
Private Const SWP_NOMOVE = &H2
Private Const SWP_NOSIZE = &H1
Private Sub Form_Load()
Set Acad = GetObject(, "AutoCAD.Application.15")
Set Doc = Acad.ActiveDocument
Set AcadX = Acad.GetInterfaceObject("AcadX.Application")
Set InputMan = Acad.GetInterfaceObject("AcadX.InputManager")
InputMan.InputPointEventsEnabled = True
SetWindowPos Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
End Sub