Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OnScreenDisplay text, centered relative to the window
#3
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));
}


Messages In This Thread
RE: OnScreenDisplay text, centered relative to the window - by Gintaras - 07-21-2022, 04:54 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)