wxBookCtrl

wxBookCtrl
This class is a superclass for several controls.
Functions/Procedures
Supertopics
Subtopics

wxBookCtrl

[proc]
add_page
( atom book, atom page, sequence text, integer select, atom image )

Category: wxBookCtrl

Adds the wxWindow page to the notebook, with text on the its tab. select indicates whether the page should be selected, and image is the image index into an imagelist.


wxBookCtrl

[proc]
delete_all_pages
( atom book )

Category: wxBookCtrl

This deletes all pages in a wxNotebook.


wxBookCtrl

[func]
get_current_page
( atom book )

Category: wxBookCtrl

This returns the current selected page of a wxNotebook. The index is 0 based, so the first page will be 0, instead of 1.


wxBookCtrl

[func]
get_next_page
( atom book, integer show )

Category: wxBookCtrl

This returns the next page in the book if show is 1, or shows the previous page if show is 0. If previous is chosen on the first page, the last page will be returned, and vice versa. Also, keep in mind of the wxNotebook's 0-based index.


wxBookCtrl

[func]
get_page_count
( atom book )

Category: wxBookCtrl

This returns the number of pages in a wxNotebook.


wxBookCtrl

[proc]
get_page_image
( atom book, integer page )

Category: wxBookCtrl

This returns the number of the sequence that the page gets it's image from if an imagelist is set. If it gets the image from the second pointer in a sequence, it will return a 1. Keep in mind that the wxNotebook works from a 0-based index as well.


wxBookCtrl

[proc]
insert_page
( integer position, atom book, atom page, sequence text, integer select, atom image )

Category: wxBookCtrl

Sets the selected page to the wxNotebook at a certain position, rather than adding it to the end. The sequence text will appear on it's tab, select can be 1 to make the wxNotebook focus on the selected page or 0 to continue working with the same page. Image will be a pointer to an image if an imagelist exists, or 0 for no image. This works with a 0-based index, so position should be 0 instead of 1 for the first page.


wxBookCtrl

[proc]
notebook_imagelist
( atom book, atom ilist )

Category: wxBookCtrl

This sets the wxImagelist to the wxNotebook, allowing the wxNotebook's children to use it's icons.


wxBookCtrl

[proc]
remove_page
( atom book, integer page )

Category: wxBookCtrl

Removes the selected page from the wxNotebook. The index is 0 based, so the first page will be 0, instead of 1.


wxBookCtrl

[proc]
set_page_image
( atom book, integer page, atom image )

Category: wxBookCtrl

This sets the selected page to have the selected image, so long as an imagelist has been set.


wxBookCtrl

[proc]
set_page_selection
( atom book, integer page )

Category: wxBookCtrl

This sets the wxNotebook to show the specified page. The index is 0 based, so the first page will be 0, instead of 1.


wxBookCtrl

[proc]
set_page_text
( atom book, integer page, sequence text )

Category: wxBookCtrl

Sets the text of the wxNotebook's tab for that page to text. The first page is 0, not 1.


wxBookCtrl

[proc]
show_page
( atom book, integer page )

Category: wxBookCtrl

Sets the wxNotebook to show a page specified by integer page. The first page is 1 instead of being 0.