3.46 tab-panel%
Superclass: vertical-panel%
A tab panel arranges its subwindows in a single column, but also
includes a horizontal row of tabs at the top of the panel. See
also panel%.
The tab-panel% class does not implement the virtual
swapping of the panel content when a new tab is selected. Instead, it
merely invokes a callback procedure to indicate that a user changed
the tab selection.
(->newtab-panel% (choices_) (parent_) [(callback_)] [(style_)] [(font_)] [(enabled_)] [(vert-margin_)] [(horiz-margin_)] [(border_)] [(spacing_)] [(alignment_)] [(min-width_)] [(min-height_)] [(stretchable-width_)] [(stretchable-height_)])tab-panel%object
choices: list of strings (up to 200 characters each)
parent:frame%,dialog%,panel%, orpane%object
callback=: procedure of two arguments: a(lambda(tpe) (void))tab-panel%object and acontrol-event%object
style=null: list of symbols in'(no-border deleted)
font=:normal-control-fontfont%object
enabled=#t: boolean
vert-margin=0: exact integer in [0, 1000]
horiz-margin=0: exact integer in [0, 1000]
border=0: exact integer in [0, 1000]
spacing=0: exact integer in [0, 1000]
alignment='(center top): two-element list:'left,'center, or'rightand'top,'center, or'bottom
min-width=graphical minimum width: exact integer in [0, 10000]
min-height=graphical minimum width: exact integer in [0, 10000]
stretchable-width=#t: boolean
stretchable-height=#t: booleanCreates a tab pane, where the
choiceslist specifies the tab labels.Each string in
choicescan contain an ampersand, which (in the future) may create a mnemonic for clicking the corresponding tab. A double ampersand is converted to a single ampersand.The
callbackprocedure is called (with the event type'tab-panel) when the user changes the tab selection.If the
stylelist includes'no-border, no border is drawn around the panel content. Ifstyleincludes'deleted, then the tab panel is created as hidden, and it does not affect its parent's geometry; the tab panel can be made active later by callingparent'sadd-childmethod.The
fontargument determines the font for the control. For information about theenabledargument, seewindow<%>. For information about thehoriz-marginandvert-marginarguments, seesubarea<%>. For information about themin-width,min-height,stretchable-width, andstretchable-heightarguments, seearea<%>.
Methods
append
delete
get-item-label
get-number
get-selection
set
set-item-label
set-selection
All Methods
accept-drop-files from window<%>
add-child from area-container<%>
after-new-child from area-container<%>
append from tab-panel%
begin-container-sequence from area-container<%>
border from area-container<%>
change-children from area-container<%>
client->screen from window<%>
container-flow-modified from area-container<%>
container-size from area-container<%>
delete from tab-panel%
delete-child from area-container<%>
enable from window<%>
end-container-sequence from area-container<%>
focus from window<%>
get-alignment from area-container<%>
get-children from area-container<%>
get-client-size from window<%>
get-cursor from window<%>
get-graphical-min-size from area<%>
get-handle from window<%>
get-height from window<%>
get-item-label from tab-panel%
get-label from window<%>
get-number from tab-panel%
get-parent from area<%>
get-plain-label from window<%>
get-selection from tab-panel%
get-size from window<%>
get-top-level-window from area<%>
get-width from window<%>
get-x from window<%>
get-y from window<%>
has-focus? from window<%>
horiz-margin from subarea<%>
is-enabled? from window<%>
is-shown? from window<%>
min-height from area<%>
min-width from area<%>
on-drop-file from window<%>
on-focus from window<%>
on-move from window<%>
on-size from window<%>
on-subwindow-char from window<%>
on-subwindow-event from window<%>
on-superwindow-enable from window<%>
on-superwindow-show from window<%>
place-children from area-container<%>
popup-menu from window<%>
reflow-container from area-container<%>
refresh from window<%>
screen->client from window<%>
set from tab-panel%
set-alignment from area-container<%>
set-cursor from window<%>
set-item-label from tab-panel%
set-label from window<%>
set-selection from tab-panel%
show from window<%>
spacing from area-container<%>
stretchable-height from area<%>
stretchable-width from area<%>
vert-margin from subarea<%>