Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EvtSpec wspecs[] = { { 'mous', mous_down }, { 'mous', mous_moved }, { 'mous', mous_wheel },
- { 'keyb', keyb_down }, { 'keyb', keyb_rep },
- { 'wind', win_resize }, { 'wind', win_active } , { 'wind', win_notactive } };
- targ = GetWindowEventTarget(wref);
- err = InstallEventHandler(targ, upp, 8, wspecs, disp, nil);
- err = GetRootControl(wref, root);
- targ = GetControlEventTarget(root);
- err = InstallEventHandler(targ, upp, 1, cspecs, disp, nil);
- switch (eclass) {
- case 'wind':
- if (ekind == win_resize) {
- OSResize();
- return true;
- }
- if (ekind == win_active) {
- ActivateWindow(fWindow, true);
- return true;
- }
- if (ekind == win_notactive) {
- ActivateWindow(fWindow, false);
- return true;
- }
- break;
Add Comment
Please, Sign In to add comment