The OpenD Programming Language

ICoreWebView2_9.put_DefaultDownloadDialogCornerAlignment

Set the default download dialog corner alignment. The dialog can be aligned to any of the WebView corners (see COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT). When the WebView or dialog changes size, the dialog keeps its position relative to the corner. The dialog may become partially or completely outside of the WebView bounds if the WebView is small enough. Set the margin relative to the corner with the DefaultDownloadDialogMargin property. The corner alignment and margin should be set during initialization to ensure that they are correctly applied when the layout is first computed, otherwise they will not take effect until the next time the WebView position or size is updated.

\snippet ViewComponent.cpp SetDefaultDownloadDialogPosition

interface ICoreWebView2_9
@" propput"
HRESULT
put_DefaultDownloadDialogCornerAlignment
(
in COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT value
)

Meta