07-21-2022, 04:54 PM
In QM3 it's easy.
C# code:
// script ""
var b = new wpfBuilder("Window").WinSize(400, 400);
b.R.AddButton("Button", _ => _Osd("Hello C#"));
b.R.AddOkCancel();
b.End();
#if WPF_PREVIEW //menu Edit -> View -> WPF preview
b.Window.Preview();
#endif
if (!b.ShowDialog()) return;
//print.it(text1.Text, combo1.SelectedIndex, c1.IsChecked == true);
void _Osd(string text) {
osdText.showText(text, 1, PopupXY.In(b.Window.Hwnd().Rect));
}