Download Project Management:
Transcript
Marks When mark mode is active the cells can be marked using mouse, if the keyboard is used all marks are cleared. A marked cell will have its background attenuated to indicate that it is marked. Cells can be selected individually or the marks can be restricted to lines and/or columns. Also multiple cells can be marked simultaneously in continuous or in segmented areas. Lines and columns are marked only when the user clicks in their respective titles. Continuous areas are marked holding and dragging the mouse or holding the Shift key. Segmented areas are marked holding the Ctrl key. Examples Browse Example Files Creates a simple matrix with the values and layout shown in the image below. There is also a menu that allows making some changes to the matrix. See Also IupCanvas IupMatrix Attributes Cell Attributes L:C: Text of the cell located in line L and column C, where L and C are integer numbers. L:0: Title of line L. 0:C: Title of column C. 0:0: Title of the area between the line and column titles. These are valid only in normal mode. No redraw is done for all cases, the application must explicity set the REDRAW attribute. ALIGNMENTn: Alignment of the cells in column n (n >= 0). No redraw is done. Possible values: "ALEFT", "ACENTER" or "ARIGHT". Default: "ALEFT" for n=0 and "ACENTER" for n>0. BGCOLOR: Background color of the matrix. BGCOLOR*:C: Background color of column C (no redraw is done for this case). BGCOLORL:*: Background color of line L (no redraw is done for this case). BGCOLORL:C: Background color of the cell in line L and column C (no redraw is done for this case). When more than one attribute are defined, the background color will be selected following this priority: BGCOLORL:C, BGCOLORL:*, BGCOLOR*:C, and last BGCOLOR. (L or C >= 0) Default BGCOLOR is white (255 255 255) for cells and the parent's BGCOLOR for titles. Since the matrix control can be larger than the matrix itself, the empty area will always be filled with the parent's BGCOLOR. FGCOLOR: Text color. FGCOLOR*:C: Text color of column C (no redraw is done for this case). FGCOLORL:*: Text color of line L (no redraw is done for this case). FGCOLORL:C: Text color of the cell in line L and column C (no redraw is done for this case). When more than one attribute are define, the text color of a cell will be selected following this priority: FGCOLORL:C, FGCOLORL:*, FGCOLOR*:C, and last FGCOLOR. (L or C >= 0) Default FGCOLOR is black (0 0 0). FONT: Character font of the text. FONTL:*: Text font of the cells in line L (no redraw is done for this case). FONT*:C: Text font of the cells in column C (no redraw is done for this case). FONTL:C: Text font of the cell in line L and column C (no redraw is done for this case). This attribute must be set before the control is showed. It affects the calculation of the size of all the matrix cells. The cell size is always calculated from the base FONT attribute. FOCUS_CELL: Defines the currently focused cell. Two numbers in the L:C format, (L and C>=1). Default: "1:1". VALUE: Allows setting or verifying the value of the current cell. Is the same as using the L:C attribute, L and C corresponding to the current cells line and column. But when updated or retreived during cell editing, the edit control will be updated or consulted instead of the matrix cell. When retrieved inside the EDITION_CB callback when mode is 0, then the return value is the new value that will be updated in the cell. SORTSIGNn: Shows a sort sign (up or down arrow) in the column n title. Possible values: "UP", "DOWN" and "NO". Default: NO. Size Attributes NUMCOL: Defines the number of columns in the matrix. Must be an integer number. Default: "0".