Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dialog format
#1
in this dialog i need to be able to resize the multi-line edit field along with the entire window at the same time. what's the setting for that?

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

str controls = "5"
str e5
e5.getfile("C:\qm\projects.txt")
if(!ShowDialog("Projects" &Projects &controls)) ret

;BEGIN DIALOG
;0 "" 0x10CC0A44 0x100 0 0 99 109 "Projects"
;5 Edit 0x542710C4 0x50304 0 18 98 48 ""
;4 Button 0x54032000 0x10004 2 2 40 14 "Save"
;2 Button 0x54030001 0x4 44 2 36 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2010703 "*" ""


ret
;messages
WindowOnAllDesktops hDlg message wParam lParam
sel message
,case WM_INITDIALOG DT_Init(hDlg lParam)
,DT_Init(hDlg lParam)
,int hedit=id(5 hDlg)
,SetFocus hedit
,SendMessage hedit EM_SETSEL -2 -2
,SendMessage hedit WM_VSCROLL 7 0 ;;def SB_BOTTOM 7
,mov 874 258
,ret
,case WM_DESTROY DT_DeleteData(hDlg)
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 4 ;;Save
,str s.getwintext(id(5 hDlg))
,s.setfile("C:\qm\projects.txt")
,
,case IDCANCEL DT_Cancel hDlg
ret 1
#2
Code:
Copy      Help
,case WM_SIZE
,RECT r; GetClientRect hDlg &r
,MoveWindow id(5 hDlg) 0 30 r.right r.bottom-30 1
#3
positivly marvelous!!!
Big Grin


thanks


Forum Jump:


Users browsing this thread: 1 Guest(s)