PA_GetToolBarInfo

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_GetToolBarInfo (displayed; toolbarHeight)

ParameterTypeDescription
displayedchar *1 = Toolbar is displayed, otherwise 0
toolbarHeightshort *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

PA_ShowHideToolBar.

Error Handling

PA_GetLastError always returns eER_NoErr


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next