I would consider them part of the same statement: Alter ButtonPad.
This statement can be used to modify an existing ButtoPad or toolbar from within a MapBasic application.
You can also create your own menu or buttonpad using these statements:
- Create Menu
- Create ButtonPad
All the MapBasic documentation can be found on the Pitney Bowes web site. It's easiest to go thru the mapinfo.com site however:
Here you can find all documentation for our products.
Here is a more direct link to the documentation for MapInfo MapBasic:
MapInfo MapBasic documentation
If you are new to MapBasic have a look a this article on gis.se: Getting Started with MapBasic
MapBasic is not an object orientated language, so adding your own statements as you suggest above is not doable - at least not the way you suggest it.
What I tend to do to get it closer to object orientated programming, is to create modules for each of my "objects". These modules can then have an Create procedure or function and I can also add my own Add functions to the module. In that way I can encapsulate the logic of the "object" in a module and access this "object" thru the available procedures and functions.
Here's a very basic example of the definition of such an module
StartPoint As T_MI_POINT
EndPoint As T_MI_POINT
Declare Sub tmilCopy( tmilFrom As T_MI_LINE 'Input T_MI_LINE
, tmilTo As T_MI_LINE 'Output T_MI_LINE
Declare Sub tmilOffset( tmil As T_MI_LINE 'T_MI_LINE to offset - this will be changed
, ByVal fDistance As Float 'Distance to offset the T_MI_LINE
, ByVal fDirection As Float 'Direction to offset the T_MI_LINE
Declare Function tmilAreIdentical( tmil1 As T_MI_LINE 'first T_MI_LINE to compare
, tmil2 As T_MI_LINE 'second T_MI_LINE to compare
) As Logical
Declare Function tmilToLine( tmil As T_MI_LINE 'Creates a line using the coordinates of the T_MI_LINE
) As Object 'Returns a line with the current style
Declare Function tmilToLineWithStyle( tmil As T_MI_LINE 'Creates a line using the coordinates of the T_MI_LINE
, ByVal penUse As Pen 'Pen to use for the line to create
) As Object 'Returns a line with the style given
But this is not near the features of a modern object orientated language.
You can of course also choose to develop your application using an OOP and then integrate into MapInfo Professional using the Intergrated Mapping interface, or you could develope somethings in OOP and access these in a assembly from MapBasic.
With the upcoming 64bit version of MapInfo Professional were are extending the .NET API available to developers. This should be released in the October/November time frame of 2014.