Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create dialog and interact with it
#1
Hi Gintaras, hi all

searched the forum but unlucky so i try here.

Created a simple dialog with only a static text in it.

Function Dialog2
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

str controls = "3"
str c3one

if(!ShowDialog("Dialog2" &Dialog2 &controls)) ret


;BEGIN DIALOG
;0 "" 0x10C00AC8 0x0 0 0 224 131 "Macro en cours"
;3 Static 0x54000001 0x8000000 88 22 48 10 "Text"
;END DIALOG
;DIALOG EDITOR: "" 0x2030605 "" "" "" ""

ret
;messages
sel message
,case WM_LBUTTONDBLCLK
,DT_Cancel hDlg
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1


Would like to launch it, and from another macro be able to change the static text on demand.


How to achieve that?

thanks


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)