Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

TabpanelCountMBS(theTabpanel as Tabpanel) as Integer
Type Topic Version
global method Controls 4.1
Function: Returns the number of pages on a tabpanel.
Example:
dim i,c as Integer

c=TabpanelCountMBS(TabPanel1)

for i=0 to c
TabpanelEnabledMBS TabPanel1,i,false
next
Notes:
This function does currently not work with the Mac Cocoa target of REALbasic. If you need it, please send in a feature request.

You can do the same with PanelCount property in newer Real Studio versions.

Some examples using this method:

Feedback, Comments & Corrections

TabpanelEnabledMBS(theTabpanel as Tabpanel, index as Integer, value as boolean)
Type Topic Version
global method Controls 4.1
Function: Enables or disables a tabpanel.
Example:
dim i,c as Integer

c=TabpanelCountMBS(TabPanel1)

for i=0 to c
TabpanelEnabledMBS TabPanel1,i,false
next
Notes:
Index is from 1 to count.
Make sure the disabled tab panel is not used while you disable it.
You may need to call refresh to redraw the tabpanel.
PS: Can't find a way to disable tabs on Windows. Any hint is welcome.

This function works only on Carbon targets.
For Cocoa, please use enabled property of NSTabViewItemMBS class.

Some examples using this method:

Some FAQ entries about this method:

Blog Entries

Feedback, Comments & Corrections




Links
MBS Xojo PDF Plugins