The GtkClist class is a container that presents data in a columnized list.
The class heirarchy
Object +---GtkWidget +---GtkContainer +---GtkCList |
The methods for the GtkCList class are documented below.
This method creates and initializes the widget.
This is a example of how to create a new columnised list widget.
cols = 3 myclist = .GtkCList~new(cols) |
The new GtkCList object.
This method appends a new row to the end of the list.
This is a example of how to append a new row to the columnised list.
col1 = 'Ashley' col2 = 'David' myclist~append(col1, col2) |
None.
This method gets the title for a column.
This is a example of how to get the title for a column.
title = myclist~getcolumntitle(col) |
The current column title.
This method gets the text for a row/column.
This is a example of how to get the text for a row/column.
text = myclist~gettext(row, col) |
The current column text.
This method inserts a new row into the list.
This is a example of how to insert a new row to the columnised list.
col1 = 'Ashley' col2 = 'David' myclist~append(row, col1, col2) |
None.
This method prepends a new row to the beginning of the list.
This is a example of how to prepend a new row to the columnised list.
col1 = 'Ashley' col2 = 'David' myclist~prepend(col1, col2) |
None.
This method gets the selected row/column.
This is a example of how to get the selected row/column.
selected = myclist~selected() parse var selected row col |
None.
The current selected row and column.
This method sets the column title.
This is a example of how to set the column title.
title = 'Last Name' col = 1 myclist~setcolumntitle(col, title) |
None.
This method sets the column width.
This is a example of how to set the column width.
width = 10 col = 1 myclist~setcolumnwidth(col, width) |
None.
This method sets the row/column text.
This is a example of how to set the row/column text.
text = 'Payne' row = 1 col = 1 myclist~settext(row, col, text) |
None.