version 2003
PA_GetPlatformInterface PA_PlatformInterface
Parameter | Type | Description | ||||
This command does not require any parameters | ||||||
Function result | PA_PlatformInterface | Kind of running platform |
Description
The routine PA_GetPlatformInterface returns the current Platform Interface setting.
After the call, possible returned values are defined as follows in the PublicTypes.h:
typedef enum { ePI_Automatic = -1, // Show layouts according to platform GUI ePI_Macintosh = 0, // Show layouts using Macintosh GUI ePI_Win31 = 1, // Show layouts using Windows 3.1.x GUI ePI_Win95 = 2, // Show layouts using Windows 95 GUI ePI_MacTheme = 3 // Show layouts using Macintosh Appearance Manager } PA_PlatformInterface;
NOTE:
The current Platform Interface setting may vary during a work session. A user can change this setting manually using the Preferences dialog box in the Design environment, or procedurally, using the 4D command SET INTERFACE.
So, if you take the platform interface setting into account definitely for defining a plug-in area (for example, defining the Windows or Macintosh appearance differently), you must check this flag before defining and not at plug-in init.
See Also
Error Handling
PA_GetLastError always returns eER_NoErr