# File rdoc-sources/FXTable.rb, line 660 def setColumnIcon(FXint index,FXIcon* icon); # Return icon of column header at index def getColumnIcon(index); end # Change row header icon def setRowIcon(index, icon); end # Return icon of row header at index def getRowIcon(index); end # Change column header icon position, e.g. FXHeaderItem::BEFORE, etc. def setColumnIconPosition(index, mode); end # Return icon position of column header at index def getColumnIconPosition(index); end # Change row header icon position, e.g. FXHeaderItem::BEFORE, etc. def setRowIconPosition(index, mode); end # Return icon position of row header at index def getRowIconPosition(index); end # Change column header justify, e.g. FXHeaderItem::RIGHT, etc. def setColumnJustify(index, justify); end # Return justify of column header at index def getColumnJustify(index); end # Change row header justify, e.g. FXHeaderItem::RIGHT, etc. def setRowJustify(index, justify); end # Return justify of row header at index def getRowJustify(index); end # # Modify cell text for item at specified _row_ and _col_. # If _notify_ is +true+, a +SEL_REPLACED+ message is sent to the table's # message target before the item's text is changed.. # Raises IndexError if either _row_ or _col_ is out of bounds. # def setItemText(row, col, text, notify=false) ; end # Return cell text for item at specified _row_ and _column_. # Raises IndexError if either _row_ or _column_ is out of bounds. def getItemText(row, column) ; end # # Modify cell icon, deleting the old icon if it was owned. # If _notify_ is +true+, a +SEL_REPLACED+ message is sent to the table's # message target before the item's icon is changed.. # Raises IndexError if either _row_ or _col_ is out of bounds. # def setItemIcon(row, col, icon, notify=false) ; end # Return item icon. # Raises IndexError if either _row_ or _column_ is out of bounds. def getItemIcon(row, column) ; end # Modify cell user data. # Raises IndexError if either _row_ or _column_ is out of bounds. def setItemData(row, column, data) ; end # Return cell user data. # Raises IndexError if either _row_ or _column_ is out of bounds. def getItemData(row, column) ; end # # Extract the text from all the cells in the specified range and # return the result as a string. # Within the result string, each column's text is delimited by # the string specified by _cs_, and each row is delimited by # the string specified by _rs_. # To reverse this operation (i.e. set the table cells' text # from a string), see #overlayText. # Raises IndexError if any of _startrow_, _endrow_, _startcol_ # or _endcol_ is out of bounds. # # ==== Parameters: # # +startrow+:: the starting row for the range [Integer] # +endrow+:: the ending row for the range [Integer] # +startcol+:: the starting column for the range [Integer] # +endcol+:: the ending column for the range [Integer] # +cs+:: the string to insert at each column break [String] # +rs+:: the string to insert at each row break [String] # def extractText(startrow, endrow, startcol, endcol, cs="\t", rs="\n"); end # # Overlay the text for the cells in the specified range with # the fields specified in _text_. # Within the _text_ string, each column's text should delimited by # the character specified by _cs_, and each row should be delimited by # the character specified by _rs_. # To reverse this operation (i.e. extract the table cells' text # into a string), see #extractText. # Raises IndexError if any of _startrow_, _endrow_, _startcol_ # or _endcol_ is out of bounds. # # ==== Parameters: # # +startrow+:: the starting row for the range [Integer] # +endrow+:: the ending row for the range [Integer] # +startcol+:: the starting column for the range [Integer] # +endcol+:: the ending column for the range [Integer] # +text+:: the text containing the new cell text [String] # +cs+:: the character to insert at each column break [String] # +rs+:: the character to insert at each row break [String] # def overlayText(startrow, endrow, startcol, endcol, text, cs="\t", rs="\n", notify=false); end # # Determine the number of rows and columns in a block of text # where columns are separated by characters from the set _cs_, and rows # are separated by characters from the set _rs_. # Return a two-element array containing the number of rows and # columns, respectively. # def countText(text, cs="\t,", rs="\n"); end # Return +true+ if the cell at position (_r_, _c_) is a spanning cell. # Raises IndexError if either _r_ or _c_ is out of bounds. def itemSpanning?(r, c); end # # Repaint cells between grid lines (_startRow_, _endRow_) and grid lines # (_startCol_, _endCol_). # Raises IndexError if any of the starting or ending grid lines is out of bounds. # def updateRange(startRow, endRow, startCol, endCol) ; end # Repaint cell. # Raises IndexError if either _row_ or _column_ is out of bounds. def updateItem(row, column) ; end # Enable cell. # Raises IndexError if either _row_ or _column_ is out of bounds. def enableItem(row, column) ; end # Disable cell. # Raises IndexError if either _row_ or _column_ is out of bounds. def disableItem(row, column) ; end # Returns +true+ if the cell at position (_row_, _column_) is enabled. # Raises IndexError if either _row_ or _column_ is out of bounds. def itemEnabled?(row, column) ; end # # Change item justification for the cell at (_r_, _c_). # Horizontal justification is controlled by passing # FXTableItem::RIGHT, FXTableItem::LEFT, or FXTableItem::CENTER_X. # Vertical justification is controlled by FXTableItem::TOP, FXTableItem::BOTTOM, # or FXTableItem::CENTER_Y. # The default is a combination of FXTableItem::RIGHT and FXTableItem::CENTER_Y. # # Raises IndexError if either _r_ or _c_ is out of bounds. # def setItemJustify(r, c, justify); end # Return item justification for the cell at (_r_, _c_). # Raises IndexError if either _r_ or _c_ is out of bounds. def getItemJustify(r, c); end # # Change relative position of icon and text of item at (_r_, _c_). # Passing FXTableItem::BEFORE or FXTableItem::AFTER places the icon # before or after the text, and passing FXTableItem::ABOVE or # FXTableItem::BELOW places it above or below the text, respectively. # The default is 0 which places the text on top of the icon. # # Raises IndexError if either _r_ or _c_ is out of bounds. # def setItemIconPosition(r, c, mode); end # Return the relative position of the icon and text for the cell at (_r_, _c_). # Raises IndexError if either _r_ or _c_ is out of bounds. def getItemIconPosition(r, c); end # # Change item borders style for the item at (_r_, _c_). # Borders on each side of the item can be turned # controlled individually using FXTableItem::LBORDER, FXTableItem::RBORDER, # FXTableItem::TBORDER and FXTableItem::BBORDER. # # Raises IndexError if either _r_ or _c_ is out of bounds. # def setItemBorders(r, c, borders); end # Return the border style for the cell at (_r_, _c_). # Raises IndexError if either _r_ or _c_ is out of bounds. def getItemBorders(r, c); end # Set the background stipple style for the cell at (_r_, _c_). # Raises IndexError if either _r_ or _c_ is out of bounds. def setItemStipple(r, c, pat); end # Return the background stipple style for the cell at (_r_, _c_). # Raises IndexError if either _r_ or _c_ is out of bounds. def getItemStipple(r, c); end # Change current cell. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the table's # message target after the current item changes. # Raises IndexError if either _row_ or _column_ is out of bounds. def setCurrentItem(row, column, notify=false) ; end # Returns +true+ if the cell at position (_row_, _column_) is the current cell. # Raises IndexError if either _row_ or _column_ is out of bounds. def itemCurrent?(row, column) ; end # Change anchored cell. # Raises IndexError if either _row_ or _column_ is out of bounds. def setAnchorItem(row, column) ; end # Returns +true+ if the cell at position (_row_, _column_) is selected. # Raises IndexError if either _row_ or _column_ is out of bounds. def itemSelected?(row, column) ; end # Return +true+ if the specified row of cells is selected. # Raises IndexError if _r_ is out of bounds. def rowSelected?(r); end # Return +true+ if the specified column of cells is selected. # Raises IndexError if _c_ is out of bounds. def columnSelected?(c); end # Return +true+ if any cells are selected. def anythingSelected?; end # Select a row of cells. # If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the table's message # target for each previously selected cell that becomes deselected as a result of # this operation. Likewise, a +SEL_SELECTED+ message is sent to the table's # message target for each newly-selected cell. # Raises IndexError if _row_ is out of bounds. def selectRow(row, notify=false); end # Select a column of cells. # If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the table's message # target for each previously selected cell that becomes deselected as a result of # this operation. Likewise, a +SEL_SELECTED+ message is sent to the table's # message target for each newly-selected cell. # Raises IndexError if _col_ is out of bounds. def selectColumn(col, notify=false); end # Select range. # If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the table's message # target for each previously selected cell that becomes deselected as a result of # this operation. Likewise, a +SEL_SELECTED+ message is sent to the table's # message target for each newly-selected cell. # Raises IndexError if _startRow_, _endRow_, _startColumn_ or _endColumn_ is out of bounds. def selectRange(startRow, endRow, startColumn, endColumn, notify=false) ; end # Extend selection. # If _notify_ is +true+, a series of +SEL_SELECTED+ and +SEL_DESELECTED+ messages are sent to the table's message target # after each affected item is selected or deselected. # Raises IndexError if either _row_ or _column_ is out of bounds. def extendSelection(row, column, notify=false) ; end # Kill selection. # If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the table's # message target for each cell that was previously selected. def killSelection(notify=false) ; end # # Change cell background color. # The values for _row_ and _column_ are either zero or one. # If the value is zero, this background color is used for even-numbered # rows (columns). If the value is one, this background color is used # for odd-numbered rows (columns). # See also #getCellColor. # def setCellColor(row, column, color) ; end # # Obtain cell background color. # The values for _row_ and _column_ are either zero or one. # If the value is zero, returns the background color used for even-numbered # rows (columns). If the value is one, returns the background color used # for odd-numbered rows (columns). # See also #setCellColor. # def getCellColor(row, column) ; end # Create a new table item def createItem(text, icon, data) ; end # Draw a table cell def drawCell(dc, xlo, xhi, ylo, yhi, xoff, yoff, startRow, endRow, startCol, endCol) ; end # Draw a range of cells def drawRange(dc, xlo, xhi, ylo, yhi, xoff, yoff, rlo, rhi, clo, chi) ; end # Set column renumbering to +true+ or +false+. def columnRenumbering=(renumber); end # Get column renumbering def columnRenumbering? ; end # Set row renumbering to +true+ or +false+. def rowRenumbering=(renumber); end # Get row renumbering def rowRenumbering? ; end end