❔ Windows Warning

Is it possible to somehow make the same window with my message?
No description
10 Replies
Tvde1
Tvde113mo ago
@364 days until Halloween 👻 would maybe know
Jester
Jester13mo ago
ive been summoned yeah you could try to make a simular looking window
Jester
Jester13mo ago
a blue top most popup window in WPF with white text, shouldnt be too hard
Petris
Petris13mo ago
@ref *&Sergio do you know if hose actual windows dialogs are accessible btw?
Sergio
Sergio13mo ago
That looks like a MesageDialog that's somehow still using the Windows 8 styles? @Ahmed Walid you might know?
Ahmed Walid
Ahmed Walid13mo ago
it's not a MessageDialog but it uses the same API that MessageDialog uses internally (IPopupWindow + DirectUI 7) but you can achieve similar one using MessageDialog, yeah you'd need to initialize it with IInitializeWithWindow if you don't have a CoreWindow Example:
var messageDialog = new MessageDialog("The content.", "The title.");
WinRT.Interop.InitializeWithWindow.Initialize(messageDialog, myHwnd);
await messageDialog.ShowAsync();
var messageDialog = new MessageDialog("The content.", "The title.");
WinRT.Interop.InitializeWithWindow.Initialize(messageDialog, myHwnd);
await messageDialog.ShowAsync();
afaik all of DirectUI is accessible, so yeah I think these are (assuming you mean accessible as in a11y)
Sergio
Sergio13mo ago
I swear just asking Ahmed is faster than checking osgwiki or the OS repo kekw
Accord
Accord13mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server