PA_GetAreaName

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

version 2003


PA_GetAreaName (params; name)

ParameterTypeDescription
paramsPA_PluginParametersParameters received in PluginMain
namechar*Sting buffer to the name of the area

Description

The routine PA_GetAreaName returns the name of the area in the string buffer name. It is the name of the variable used by the 4D developer in the Design environment.

params is the PA_PluginParameters the plug-in received in its PluginMain routine.

name will never contain the interprocess sign ("<>" under Windows and the diamond under MacOS), but the plug-in can retreive this info in the plug-in properties by reading the fInterProcessVariable field of the PA_PluginProperties structure.

Depending on default settings or on previous calls to PA_UsePStrings or PA_UseCStrings, name will be a Pascal or an ANSI C string.

Example

Getting all area info, events, properties.

   void GetAreaStuff(PA_PluginParameters params,
                  AE_AreaEvent *event,
                  char *name,
                  PA_Rect *rect,
                  PA_PluginProperties *props)
   {
      if(event)
         *event = PA_GetAreaEvent(params);
      if(name)
         PA_GetAreaName(params, name);
      if(rect)
         *rect = PA_GetAreaRect(arams);
      if(props)
         PA_GetPluginProperties(params, props);
   }

See Also

Create and use an external area, PA_GetAreaEvent, PA_GetAreaRect.

Error Handling

PA_GetLastError keeps the last error that occurred before calling the routine.


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