I took the example program and tried to run it. The menu function works fine but the button doesn't appear on my PPC - any suggestions as to why not?
Func WndProc(hWnd$, Msg$, wParam$, lParam$)
ok$ = true;
case (Msg$)
WM_COMMAND:
wmId$ = LOWORD(wParam$);
wmEvent$ = HIWORD(wParam$);
case (wmId$)
401:
PostMessage(hWnd$, WM_CLOSE, 0, 0);
402:
ShowMessage("Wow!");
500:
case (wmEvent$)
BN_CLICKED:
ShowMessage("Hello World");
end;
End;
End;
Return (ok$);
End;
func WinMain
form$ = NewForm("MLM", "MyWindowClass", &WndProc;);
menu$ = NewMenu(form$, "Here", 400);
NewMenuItem(menu$, -1, "E&xit;", 401);
NewMenuItem(menu$, -1, "-", 0);
NewMenuItem(menu$, -1, "S&how;", 402);
b$ = NewControl(200, "BUTTON", NULL, "Greetings", 0, form$, 70, 100, 100, 20);
ShowWindow(form$, SW_SHOW);
return (true);
End;
Func WndProc(hWnd$, Msg$, wParam$, lParam$)
ok$ = true;
case (Msg$)
WM_COMMAND:
wmId$ = LOWORD(wParam$);
wmEvent$ = HIWORD(wParam$);
case (wmId$)
401:
PostMessage(hWnd$, WM_CLOSE, 0, 0);
402:
ShowMessage("Wow!");
500:
case (wmEvent$)
BN_CLICKED:
ShowMessage("Hello World");
end;
End;
End;
Return (ok$);
End;
func WinMain
form$ = NewForm("MLM", "MyWindowClass", &WndProc;);
menu$ = NewMenu(form$, "Here", 400);
NewMenuItem(menu$, -1, "E&xit;", 401);
NewMenuItem(menu$, -1, "-", 0);
NewMenuItem(menu$, -1, "S&how;", 402);
b$ = NewControl(200, "BUTTON", NULL, "Greetings", 0, form$, 70, 100, 100, 20);
ShowWindow(form$, SW_SHOW);
return (true);
End;