|
|
1.1 ! root 1: .ds ZZ DEVELOPMENT PACKAGE ! 2: .TH STATE 3R "630 MTG" ! 3: .XE "P->state" ! 4: .XE "MOVED" ! 5: .XE "RESHAPED" ! 6: .XE "SCR_LOCK" ! 7: .SH NAME ! 8: state: P->state, MOVED, RESHAPED, NO_RESHAPE \- per process windowing states ! 9: .SH SYNOPSIS ! 10: .B #include <dmd.h> ! 11: .sp ! 12: .B long P->state; ! 13: .SH DESCRIPTION ! 14: .I P->state ! 15: is the state variable for an application running in the 630 ! 16: MTG. ! 17: .PP ! 18: The fields in the state variable relevant to windowing operations ! 19: are: ! 20: .IP "" ! 21: \s-1MOVED\s+1 ! 22: .IP "" ! 23: \s-1RESHAPED\s+1 ! 24: .IP "" ! 25: \s-1NO_RESHAPE\s+1 ! 26: .PP ! 27: These bits are set or checked by the terminal during a windowing operation. ! 28: .PP ! 29: If an application program wants to do some special processing after ! 30: being moved or reshaped, ! 31: it must periodically check the proper \f2state\f1 bits. When ! 32: the pertinent event occurs, the application program should perform ! 33: its special processing and then ! 34: reset the proper bits in the state variable as follows: ! 35: .PP ! 36: For a process to test whether its window has been ! 37: moved , ! 38: it must check: ! 39: .PP ! 40: .ft CM ! 41: ( P->state&\s-1MOVED\s+1 ) ! 42: .ft R ! 43: .PP ! 44: To reset the \s-1MOVED\s+1 condition it is necessary to execute: ! 45: .PP ! 46: .ft CM ! 47: P->state &= ~(\s-1MOVED|RESHAPED\s+1); ! 48: .ft R ! 49: .PP ! 50: For a process to test whether its window has been ! 51: reshaped, ! 52: it must check: ! 53: .PP ! 54: .ft CM ! 55: ( P->state&\s-1RESHAPED\s+1 && !(P->state&\s-1MOVED\s+1) ) ! 56: .ft R ! 57: .PP ! 58: To reset the \s-1RESHAPED\s+1 condition it is necessary to execute: ! 59: .PP ! 60: .ft CM ! 61: P->state &= ~\s-1RESHAPED\s+1; ! 62: .ft R ! 63: .PP ! 64: The reason for the interaction of the \s-1MOVED\s+1 and \s-1RESHAPED\s+1 bits ! 65: is purely historical. ! 66: .PP ! 67: The \s-1NO_RESHAPE\s+1 bit should be set if the application program does ! 68: not want ! 69: to be reshaped by the user through the global mouse operation. A message box ! 70: with the message "Fixed size window: Cannot be reshaped" will be ! 71: displayed if the user attempts to reshape the window. ! 72: Clearing the bit makes the window reshapable again. ! 73: .SH SEE ALSO ! 74: keyboard(3r). ! 75:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.