Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
![]() | Version 1.9 Build 1556 |
|
Package | display | |
Module | widgets | |
Tool | tabdialog |
This function returns a record containing the name of the Tab which is currently visible and its index (1 relative).
f := dws.frame(); t := tabdialog(f) df := t.dialogframe() # frames := [=] frames['1'] := dws.frame(df) frames['1']->unmap() frames['1'].b := dws.button(frames['1'], 'b1') frames['2'] := dws.frame(df) frames['2']->unmap() frames['2'].b := dws.button(frames['2'], 'b2') # t.add(frames['1'], 'TAB1') t.add(frames['2'], 'TAB2') # t.front('TAB2') t.which() [name=TAB2, index=2]