hello,
I need OnScreenDisplay text, relative to the current window, centered display, not centered relative to the screen, is this possible?
The following code is that the left alignment of the relative window, center alignment, is somewhat difficult
Thanks in advance!
david
Macro Macro10
I need OnScreenDisplay text, relative to the current window, centered display, not centered relative to the screen, is this possible?
The following code is that the left alignment of the relative window, center alignment, is somewhat difficult
Thanks in advance!
david
Macro Macro10
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 324 136 "Dialog" "4"
;3 Button 0x54032000 0x0 140 64 48 14 "Display Text"
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040C02 "*" "" "" ""
if(!ShowDialog(dd &sub.DlgProc 0)) ret
#sub DlgProc
function# hDlg message wParam lParam
int x y w
GetWinXY hDlg x y w
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
,case 3 ;;Button
,OnScreenDisplay "Hello World" 0.8 x y "" 36 0xC000C0 1
ret 1