Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to return focus
#1
Use the button to add a substring to a word in the edit box, but the result cannot be returned. Huh

Can someone give some advice? Thanks in advance

Macro Macro3
Code:
Copy      Help
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog" "4"
;3 Edit 0x54231044 0x200 20 12 188 64 ""
;4 Button 0x54032000 0x0 32 92 56 14 "Add sub str"
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040801 "*" "" "" ""

str controls = "3"
str e3
e3="Name"
if(!ShowDialog(dd &sub.DlgProc &controls)) ret


#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
,case 4 ;;Add sub str
,_s.getsel
,str s1.from("$inp_" _s "$")
,s1.setsel

ret 1


Messages In This Thread
How to return focus - by win - 04-11-2019, 09:35 PM
RE: How to return focus - by Kevin - 04-11-2019, 10:18 PM
RE: How to return focus - by win - 04-11-2019, 11:45 PM
RE: How to return focus - by Kevin - 04-12-2019, 12:17 AM
RE: How to return focus - by win - 04-12-2019, 12:40 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)