Dialog focus is lost after a "Shell.Application"

Dialog focus is lost after a "Shell.Application"

scot-65
Advisor Advisor
1,083 Views
1 Reply
Message 1 of 2

Dialog focus is lost after a "Shell.Application"

scot-65
Advisor
Advisor

Developing a dialog which includes the user to "Browse for Folder" - a program provided by Lee Mac [Many thanks!].

Upon returning from this shell application (weather successful or nil) focus is lost to the dialog.

 

The shell application overlays the dialog when called.

(vla-getInterfaceObject (setq ac (vlax-get-acad-object)) "Shell.Application")...

The shell application provides a return [selected directory or nil].

 

Is there something I can write that will return focus to the dialog?

 

[I would rather not want to temporarily close the dialog during the shell application]

 

Scot-65

 


Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
1,084 Views
1 Reply
Reply (1)
Message 2 of 2

scot-65
Advisor
Advisor
Well, after posting this...
Had a "reservation" at the "library" to do some "reading".
Thought of an answer and afterwards, tried it out with success.

After the shell application closed, the popup list and list box filled
out just fine even though focus was lost.
By reassigning mode_tile = 2 to the button that called the shell, it worked.

Scot-65

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes