version 2003
PA_CustomizeDesignMode (params)
| Parameter | Type | Description | |
| params | PA_PluginParameters | Parameters received in PluginMain |
Description
The routine PA_CustomizeDesignMode tells 4th Dimension that the area wants to draw itself in the form editor. If the area does not call PA_CustomizeDesignMode at eAE_DesignUpdate event, 4th Dimension will draw the standard plug-in area picture.
params is the PA_PluginParameters the plug-in received in its PluginMain routine.
This routine must be called when PA_GetAreaEvent returns eAE_DesignUpdate. Otherwise, it does nothing and PA_GetLastError returns eER_BadEventCall.
Example
Draw a picture resource (with Altura under Windows) in the form editor.
if(PA_GeAreatEvent(params) == eAE_DesignUpdate)
{
PA_Rect r = PA_GetAreaRect(params);
PicHandle myPict = GetResource('PICT', 15678);
if(myPict)
{
DrawPicture(myPict, (Rect *) &r);
}
}
See Also
Create and use an external area.
Error Handling
Use PA_GetLastError to see if an error occurred (eER_BadEventCall)