04-03-2011, 08:19 PM
Better yet! Can you fix this code to center properly for me so I can see exactly what needs to be done?
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "1 2"
str b1Ok b3Can
if(!ShowDialog("Move_Button" &Move_Button &controls)) ret
...
BEGIN DIALOG
0 "" 0x90C90AC8 0x0 0 0 265 163 "Dialog"
1 Button 0x54030001 0x4 76 6 48 14 "OK"
2 Button 0x54030000 0x4 132 6 48 14 "Cancel"
END DIALOG
DIALOG EDITOR: "" 0x2030208 "" "2" ""
ret
messages
DT_AutoSizeControls hDlg message "1mh 2mh"
sel message
case WM_INITDIALOG
case WM_DESTROY
case WM_COMMAND goto messages2
ret
messages2
sel wParam
case IDOK
case IDCANCEL
case LBN_SELCHANGE<<16|3
selectpage
_i=LB_SelectedItem(id(3 hDlg))
DT_Page hDlg _i
ret 1