Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OnScreenDisplay text, centered relative to the window
#4
Thanks for your help,

Use the following code when the text length needs to be displayed dynamically changing , Centering fails

Macro Macro10
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 Davider - 07-22-2022, 09:55 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)