Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OnScreenDisplay text, centered relative to the window
#2
This code is not perfect, but simple. To center perfectly would need some programming.

Code:
Copy      Help
,case 3 ;;Button
,RECT r; GetWindowRect hDlg &r
,OnScreenDisplay "Hello World" 0.8 (r.left+r.right)/2-100 (r.top+r.bottom)/2-20 "" 36 0xC000C0 1|16 "osdCenter18649"


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

Forum Jump:


Users browsing this thread: 6 Guest(s)