Message 1 of 4
Modeless,AcFocusCtrl1 and GetEntity

Not applicable
01-15-2007
04:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Roughly I have a dialog box with the following
1. the main module sets my dialog to Modeless
2. One button to select an object “cmdGetObj”
3. one button to exit “cmdExit”
When I select the getobj button I am prompter to select an object.
(and possible I will have a loop to select objects)
The problem is that because the form is modless, I can also select the exit button……
But the exit only unloads the form and the user is still prompted to select a point.
How can I set it up so that the cmdExit will not only unload the form but will also exit the “getEntity” or any other command ?
'main program
UserForm1.Show modeless
UserForm1.AcFocusCtrl1.KeepFocus = True
Private Sub cmdGetObj_Click()
ThisDrawing.Utility.GetEntity returnObj, basePnt, "Select object to revise"
Endsub
Private Sub cmdExit_Click()
Unload Me
End Sub
1. the main module sets my dialog to Modeless
2. One button to select an object “cmdGetObj”
3. one button to exit “cmdExit”
When I select the getobj button I am prompter to select an object.
(and possible I will have a loop to select objects)
The problem is that because the form is modless, I can also select the exit button……
But the exit only unloads the form and the user is still prompted to select a point.
How can I set it up so that the cmdExit will not only unload the form but will also exit the “getEntity” or any other command ?
'main program
UserForm1.Show modeless
UserForm1.AcFocusCtrl1.KeepFocus = True
Private Sub cmdGetObj_Click()
ThisDrawing.Utility.GetEntity returnObj, basePnt, "Select object to revise"
Endsub
Private Sub cmdExit_Click()
Unload Me
End Sub