Here is a list of available tab & column routines:
|
function GetColumnName(ColumnIndex)
|
Description
Returns the string value of the column name.
Parameters
ColumnIndex
This is a integer value of the ColumnIndex to retrieve the name from, such as 0, 1, 2.
Example
columnName = GetColumnName(0)
ShowMessage(columnName)
This example would return the column name of Qty(or whichever column is left most in the estimating window).
|
|
function VisibleColumnCount
|
Description
Returns the number of visible columns.
Example
ShowMessage(VisibleColumnCount)
This example would display a message with the number of visible columns in the estimating window.
|
|
function GetTabsText
|
Description
Returns the strings of the names on all tabs
Example
Form = NewForm(230, 80, "Tabs")
NewButton(40,200,"Ok",mrOk).Default = true
NewButton(116,200,"Cancel",mrCancel).Cancel = true
TabSelect = NewComboBox(60,10,ItemProperty(CurrentTab, "Name"))
TabSelect.Items.Text = GetTabNames
if (TabSelect.Text = "") and (TabSelect.Items.Text <> "") then
TabSelect.Text = TabSelect.Items.Strings[0]
end if
NewLabel(36,14,"Tab:")
if Form.ShowModal <> mrOk then
Exit Function
end if
This example displays a combo box on a form that contains the names of all available tabs.
|
|
procedure NewTab("TabName")
|
Description
Creates a new estimating tab.
Parameters
TabName
This is a string value for the name of the new tab.
Example
NewTab("Test Tab")
This example would create a new estimating tab with the name of Test Tab.
|
|
function GetTabItemByName("TabName")
|
Description
Returns the tab ID.
Parameters
TabName
This is a string value for the name of the tab to find and return the ID of.
Example
Tab = GetTabItemByName("Estimating")
ShowMessage(ChildCount(Tab))
This example would display a message of the number of child items within the Estimating tab.
|
|
function CurrentTab
|
Description
Returns the ID of the current tab
Example
SetItemProperty(CurrentTab, "NAME", "Testing Tab")
This example would rename the currently selected tab to "Testing Tab".
|