Greeting,
I am migrating v8i code to Connect. Here i am not able to generate rsc for DItem_IconCmdRsc. but in v8i it is working fine.
below are the code.
DItem_IconCmdRsc ICONCMDID_section =
{
NOHELP, OHELPTASKIDCMD, ICONCMDATTR_DONTSINGLESHOT,
CMD_PLACE_SECTION_INDICATOR, OTASKID, "Place Section Indicator",
"Place Section Indicator",
{
{{15*XC,GENY(1),6*XC,0},Text,TEXTID_section,ON,0,"",""},
{{3*XC, GENY(3),15*XC,2*YC},PushButton,PUSHBUTTONID_swap_dir,ON,0,"",""},
{{21*XC, GENY(3),5*XC,2*YC},PushButton,PUSHBUTTONID_aa,OFF,0,"",""},
}
};
DItem_TextRsc TEXTID_section =
{
NOCMD,
LCMD,
NOSYNONYM,
NOHELP,
LHELPCMD,
HOOKID_section,
NOARG,
1,
"%s",
"%s",
"",
"",
0xff,
TEXT_NOCONCAT,
"Section :",
"siteVars.section"
};
DItem_PushButtonRsc PUSHBUTTONID_swap_dir =
{
DEFAULT_BUTTON,
NOHELP,
LHELPCMD,
HOOKID_swap_dir,
NOARG,
NOCMD,
LCMD,
"",
"Swap Direction"
};
DItem_PushButtonRsc PUSHBUTTONID_aa =
{
NOT_DEFAULT_BUTTON,
NOHELP,
LHELPCMD,
HOOKID_aa,
NOARG,
NOCMD,
LCMD,
"",
"AA"
};
As per examples we are implementing this only.
DItem_IconCmdRsc ICONCMDID_section =
{
NOHELP, OHELPTASKIDCMD, ICONCMDATTR_DONTSINGLESHOT, CMD_PLACE_SECTION_INDICATOR, OTASKID, "Place Section Indicator", "Place Section Indicator"
}
extendedAttributes
{{
{EXTATTR_FLYTEXT, "Place Section Indicator"},
{EXTATTR_BALLOON, "Place Section Indicator"},
}};