startPanelRefConstruct()
Starts the construction of the panel reference in the current panel in the GEDI.
Synopsis
int startPanelRefConstruct(string panelFileName, string dp);
Parameters
Parameter | Description |
---|---|
panelFileName | Panel file name |
dp | Data point name used for drag & drop |
Return value
In case of error -1, otherwise 0.
Description
Starts the construction of the panel reference in the current panel in the GEDI.
Example
main(int eventType, int keyboardModifiers, string dp)
{
string panelFileName;
if ((eventType == DRAG_ENTER) &&
(((panelFileName = getPath(PANELS_REL_PATH, "/objects/" + dpt))
!= "") ||
((panelFileName = getPath(PANELS_REL_PATH, "/objects/" + dpt +
".pnl")) != "") ||
((panelFileName = getPath(PANELS_REL_PATH, "/objects/" + dpt +
".xml")) != "") ||
((panelFileName = getPath(PANELS_REL_PATH,
"/objects/STD_OBJECTS/" + dpt)) != "") ||
((panelFileName = getPath(PANELS_REL_PATH,
"/objects/STD_OBJECTS/" + dpt + ".pnl") != "") ||
((panelFileName = getPath(PANELS_REL_PATH,
"/objects/STD_OBJECTS/" + dpt + ".xml") != "")) )
{
startPanelRefConstruct(panelFileName, dp);
}
}
Assignment
Availability
CTRL