Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't keep button centered on window size change
#7
Better yet! Can you fix this code to center properly for me so I can see exactly what needs to be done?
Code:
Copy      Help
\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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)