AutoCAD Civil 3D Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
loosing focus
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi, every one
I designed a window with a pick button, when I hit the button for selecting an alignment ,iam loosing the focus on autocad civil 3d 2013,what should I do to fix that
thanks
Re: loosing focus
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
what type of development are you working with? LISP, VBA, VB.NET, ARX, ....?
That is important to be able to give you any tips.
For dotNET I usually use
<DllImport("user32.dll")> _
Private Shared Function SetFocus(ByVal hwnd As System.IntPtr) As System.IntPtr
End Function
'and the call to that function
Call SetFocus(Autodesk.AutoCAD.ApplicationServices.Appl ication.DocumentManager.MdiActiveDocument.Window.H andle)
- alfred -
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Re: loosing focus
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Alfred
Sort ouf along the same lines but in reverse
I am trying to create catchments using the sendcommand and sendkeys as catchment objects are not exposed in the API yet. However on launching the command the Create Catchment Object dialog grabs the focus away from my code. Do you know anyway to return the focus to your code. I was thinking another dll with a windows hook listening for the dialog to appear but maybe you know a better way.
Justin Ralston
http://c3dxtreme.blogspot.com/
Re: loosing focus
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thank you alfred, but it didnt work for me, can you have any other solution
thanks
