for #2
--------------------------------------------------
function# str'text
int x y
GetCaretXY x y
--------------------------------------------------
case WM_INITDIALOG
mov x y+20 hDlg
--------------------------------------------------
How to achieve?
If the input cursor is not found, Appears in the center of the screen, Using the above code, the dialog appears in the upper-left corner of the screen
DynamicLV(_s 0) ;;Appears in the center of the screen
DynamicLV(_s 1) ;;Appears at the input cursor
--------------------------------------------------
function# str'text
int x y
GetCaretXY x y
--------------------------------------------------
case WM_INITDIALOG
mov x y+20 hDlg
--------------------------------------------------
How to achieve?
If the input cursor is not found, Appears in the center of the screen, Using the above code, the dialog appears in the upper-left corner of the screen
DynamicLV(_s 0) ;;Appears in the center of the screen
DynamicLV(_s 1) ;;Appears at the input cursor