Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to set control text
#1
I am a newbie. I am learning programming. I want to implement a simple function.

When I click the button(est edit text), the control(edit) displays the character "hello world"

I hope someone can tell me how to write code, thanks in advance

Macro Macro1
Trigger SF9     Help - how to add the trigger to the macro
Code:
Copy      Help
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 320 166 "Dialog"
;3 Edit 0x54030080 0x200 48 36 128 13 "edt"
;4 Button 0x54032000 0x0 52 136 62 14 "set edit text"
;1 Button 0x54030001 0x4 192 136 48 14 "OK"
;2 Button 0x54030000 0x4 256 136 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040700 "*" "" "" ""

str controls = "3"
str e3edt
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 ;;set edit text
,?????????????
ret 1


Messages In This Thread
How to set control text - by win - 04-04-2018, 11:02 AM
RE: How to set control text - by Gintaras - 04-04-2018, 12:44 PM
RE: How to set control text - by win - 04-04-2018, 01:10 PM
RE: How to set control text - by Kevin - 04-04-2018, 09:09 PM
RE: How to set control text - by win - 04-18-2018, 11:55 PM
RE: How to set control text - by Gintaras - 04-19-2018, 04:51 AM
RE: How to set control text - by win - 04-19-2018, 06:38 AM
RE: How to set control text - by win - 04-20-2018, 02:02 AM
RE: How to set control text - by Kevin - 04-20-2018, 03:41 AM
RE: How to set control text - by win - 04-20-2018, 03:52 AM
RE: How to set control text - by Kevin - 04-20-2018, 04:12 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)