THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/02/2004 at 23:19, xxxxxxxx wrote:
Now I am trying to do this to create the icon.
Bool RegisterdlgGrid(void)
{
Filename file = GeGetPluginPath();// + Filename("mytagplugin.tif");
Bool RegisterIcon(ID_ICON);
// decide by name if the plugin shall be registered - just for user convenience
String name=GeLoadString(IDS_CREATEGRID); if (!name.Content()) return TRUE;
return RegisterCommandPlugin(ID_CREATEGRID,name,0,NULL,"",gNew CreateGridTest);
}
But i can't seem get the correct way. One more thing, I found in the documentation for RegisterIcon needs 7 parameters. But when i do like this:
Bool RegisterIcon(ID_ICON, file, 0, 0, -1, -1,0);
It it saying that too many initializers.
Can anyone tell me what's the correct way to create icon in toolbar, and call the function upon clicking the icon.
Thanks and regards