Jump to content
Sign in to follow this  
chronicsilence

Getting the current top dialog

Recommended Posts

I know you can use the 'dialog' command (https://community.bistudio.com/wiki/dialog) to get a boolean value of whether a dialog is open over the main display. Does anyone know of a way to get a handle for the actual dialog object of the topmost dialog though? As in, the type of handle that would be returned by 'findDisplay'?

Share this post


Link to post
Share on other sites
Is the first or last item in the array necessarily the topmost item?

I would assume last, but best way is to store previous array and compare to new array when another display is opened.

Share this post


Link to post
Share on other sites

Apologies for the bump, but it appears that the idd of the currently opened dialog is the first one in the alldisplays array. The IDD of the dialog is -1.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×