Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
web:tabpanel [2019/09/06 12:25]
agcyphers [Methods]
web:tabpanel [2019/11/16 04:05] (current)
agcyphers [Examples]
Line 12: Line 12:
 ==== Events ==== ==== Events ====
 ^ Definition ​     ^ Description ​      ^ ^ Definition ​     ^ Description ​      ^
-| TabChanged( SelectedTab as [[http://​developer.xojo.com/​integer|Integer]] ) | This event is fired when the user switches from tab to another in the display. |+| TabChanged( SelectedTab as Integer ) | This event is fired when the user switches from tab to another in the display. |
  
 ==== Methods ==== ==== Methods ====
 ^ Definition ​     ^ Description ​      ^ ^ Definition ​     ^ Description ​      ^
 | AddItem( newItem as GraffitiWebTabPanelItem ) | Adds a new GraffitiWebTabPanel item to the display. | | AddItem( newItem as GraffitiWebTabPanelItem ) | Adds a new GraffitiWebTabPanel item to the display. |
-| FindItem( ItemText as [[http://​developer.xojo.com/​string|String]] ) | Returns the GraffitiWebTabPanelItem whose text matches ItemText. | +| FindItem( ItemText as String ) | Returns the GraffitiWebTabPanelItem whose text matches ItemText. | 
-RemoveItemItemIndex ​as [[http://​developer.xojo.com/integer|Integer]] ) | Removes an item from the TabPanel using the given parameters for comparison. | +Item(index as Integer) as GraffitiWebTabPanelItem) | Returns the item at the specified index
-| RemoveItem( ItemText as [[http://​developer.xojo.com/​string|String]] ) | ::: | +| ItemCount() as Integer | Returns the total number of items. | 
-| SelectItem( ItemIndex as [[http://​developer.xojo.com/​integer|Integer]] ) | Selects the tab at the specified index. |+| ItemIndex(item as GraffitiWebTabPanelItem) as Integer | Returns the index of the specified item. | 
 +| RemoveItem( ItemIndex as Integer ) | Removes an item from the TabPanel using the given parameters for comparison. | 
 +| RemoveItem( ItemText as String ) | ::: | 
 +| SelectItem( ItemIndex as Integer ) | Selects the tab at the specified index. |
  
 ==== Properties ==== ==== Properties ====
Line 26: Line 29:
 | Items() | GraffitiWebTabPanelItem | Nil | The array of items in the display. | | Items() | GraffitiWebTabPanelItem | Nil | The array of items in the display. |
 | LockUpdate | Boolean | False | When True, execution of scripts to update the display is deferred until LockUpdate = True. | | LockUpdate | Boolean | False | When True, execution of scripts to update the display is deferred until LockUpdate = True. |
 +| Value | Integer | GraffitiWebTabPanelItem | The currently selected tab. |
 ==== Examples ==== ==== Examples ====
-There are currently no examples for this class+=== Selecting a Tab by Index === 
 +To select a tab by index you must first get the TabPanelItem that you wish to selectThis is done by using the ''​Item(Index as Integer) as GraffitiWebTabPanelItem''​ method: 
 +<code xojo>​panelInstance.Value = panelInstance.Item(0)</​code>​