Method and device for displaying background color in electronic form
A spreadsheet and background color technology, applied in the field of background color display, can solve problems such as poor highlighting effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0091] In this embodiment, the user selects a cell area, which is composed of a cell, such as Figure 2A As shown, the details are as follows:
[0092] Step 1: Collect drawing data when the mouse or keyboard selects a cell.
[0093] Obtain the mouse point coordinates when the mouse is pressed, and calculate the row and column numbers of the cell corresponding to the mouse point coordinates by accumulating the row height and column width of the table.
[0094] Step 2: Calculate the coordinate data of the cell on the view according to the row and column numbers of the selected cell, and construct the coordinate data into a rectangle (Rectangle) object. Calculate the coordinate data of the first rectangular area to be clipped composed of cells in the row where the cell is located and the second rectangular area to be clipped composed of cells in the column where the cell area is located, the first rectangular area to be clipped and the second rectangular area to be clipped The re...
Embodiment 2
[0103] In this embodiment, the user selects two cell areas, and each cell area is composed of a cell, such as Figure 3A As shown, the details are as follows:
[0104] Step 1: Collect drawing data when the mouse or keyboard selects a cell.
[0105] For multi-selection operation, hold down the ctrl key and click the left mouse button on two non-adjacent cells.
[0106] The coordinates of the mouse point are obtained each time the left mouse button is pressed, and the row and column numbers of the cell corresponding to each mouse point coordinate are calculated by accumulating the row height and column width of the table.
[0107] Step 2: According to the row and column numbers of the cells corresponding to the coordinates of each mouse point, calculate the coordinate data of each cell on the view, and construct the obtained coordinate data into a Rectangle object. For the coordinate data of each cell saved in the Rectangle object, calculate the first rectangular area to be cl...
Embodiment 3
[0118] In this embodiment, the user selects a cell area, which is composed of multiple cells, such as Figure 4A As shown, the details are as follows:
[0119] Step 1: Collect drawing data when the mouse or keyboard selects a cell.
[0120] When the mouse is pressed and dragged to an adjacent cell, the coordinates of the mouse point when the mouse is pressed and the coordinates of the mouse point when the mouse is released are obtained, and the distance between the two mouse points is calculated by accumulating the row height and column width of the table. The row and column numbers of the selected cells. Represented by a basicRange object, which records the row and column numbers of the cell where the mouse point is located when the mouse is pressed and the row and column number of the cell where the mouse point is located when the mouse is released;
[0121] Step 2: According to the row and column numbers recorded in the basicRange object, calculate the coordinate data of ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 