You can try using the GOC_AUTOHIDE bit for graphic objects (see oc_const.h). This was added in 2006 so should be Origin 8. When this bit is set, Gr Object will become hidden once outside the layer frame.
From LT, you can do
line.states=hex(100)
and from OC, the following was the testing code I found when this was implemented:
void selected_grobj_autohide(BOOL bSet)
{
GraphLayer gl = Project.ActiveLayer();
GraphObject go;
go = Selection.Objects();
if( go )
{
Tree tr;
tr.Root.States.nVal = bSet ? GOC_AUTOHIDE : 0;
int iRet = go.UpdateThemeIDs(tr.Root, "Error", "Unknown tag");
go.ApplyFormat(tr, true, true);
}
}
CP