Converting a pixel position to or from a row/column number¶
cols_to_pixels() |
Convert a column number to pixels |
pixels_to_cols() |
Convert a pixel number to columns |
pixels_to_rows() |
Convert a pixel number to rows |
rows_to_pixels() |
Convert a column number to pixels |
SYNTAX
cols_to_pixels(window_id, ncols)
pixels_to_cols(window_id, npixels)
pixels_to_rows(window_id, npixels)
rows_to_pixels(window_id, nrows)
These functions convert a pixel position to or form the equivalent position in character windows, expressed as a row or column number. The window’s window_id must be provided, because the character grid is based on the window’s data font.
RELATED TOPICS |