src/swipl-devel/packages/xpce/man/refmanual/md/tab_stack.md

class tab_stack {#class-tab_stack}

A tab_stack object controls a set of tab objects, sheets holding controllers. Tab-stacks are normally used to make dialog windows with large numbers of options manageble.

The code below is a partial implementation of a dialog to specify a PC:

new(D, dialog('PC Specifiation sheet')),
send(D, gap, size(0,0)),
send(D, pen, 0),
send(D, append,
     tab_stack(new(CPU, tab(cpu)),
               new(Disk, tab(disk)),
               new(Monitor, tab(monitor)),
               ...)),
send(CPU, append,
     new(CPUT, menu(cpu, choice))),
send_list(CPUT, append, [386, 486, pentium]),
...

send(D, open).

Send methods {#class-tab_stack-send}

Get methods {#class-tab_stack-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.