|
![]() |
![]() |
version 2003
PA_GetToolBarInfo (displayed; toolbarHeight)
Parameter | Type | Description | |
displayed | char * | → | 1 = Toolbar is displayed, otherwise 0 |
toolbarHeight | short * | → | Height of the tool bar |
Description
The routine returns:
- In the char pointed to by
displayed
: 1 if the tool bar is displayed, otherwise 0.
|
|
- In the short pointed to by
toolbarHeight
: the height of the toolbar, in pixels.
|
Example
Return info to the user:
void PluginMain( long selector, PA_PluginParameters params )
{
switch ( selector )
{
case 1 :
GetToolbarInfo( params );
break;
}
}
void GetToolbarInfo( PA_PluginParameters params )
{
char displayed;
short toolbarHeight;
PA_GetToolbarInfo( &displayed, &toolbarHeight );
PA_SetShortParameter( params, 1, (short) displayed );
PA_SetShortParameter( params, 2, toolbarHeight );
}
See Also
Error Handling
always returns
eER_NoErr