Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dialog: how to change edit to static?
#2
Function Dialog136
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

str controls = "4"
str e4
if(!ShowDialog("Dialog136" &Dialog136 &controls)) ret

str sm_dialog_definition=
;BEGIN DIALOG
;0 "" 0x10C80A48 0x100 0 0 265 215 "About"
;4 Edit 0x54030080 0x204 10 150 246 14 ""
;3 Button 0x54012003 0x0 10 134 48 10 "Readonly"
;END DIALOG
;DIALOG EDITOR: "" 0x2030605 "" "" "" ""

ret
;messages
sel message
,case WM_INITDIALOG
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 3 SendMessage id(4 hDlg) EM_SETREADONLY but(3 hDlg) 0
ret 1


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)