本文整理汇总了C++中DataDefnBlk::SetVisibility方法的典型用法代码示例。如果您正苦于以下问题:C++ DataDefnBlk::SetVisibility方法的具体用法?C++ DataDefnBlk::SetVisibility怎么用?C++ DataDefnBlk::SetVisibility使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataDefnBlk
的用法示例。
在下文中一共展示了DataDefnBlk::SetVisibility方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: BuildDataDefn
void CEC_EquilTXPoly::BuildDataDefn(DataDefnBlk & DDB)
{
DDB.Text ("EquilTXPoly");
DDEF_Flags VFlags=DDB.GetVisibility();
DDB.String("ExtentType", "", DC_, "", xid_RCTExtentType, &Eq, SetOnChange|isParm, DDBExtentTypes);
DDB.SetVisibility(VFlags);
DDB.Double("K_Eq", "", DC_, "", &dK_Eq, &Eq, isResult);
DDB.Double("K_Act", "", DC_, "", &dK_Act, &Eq, isResult);
DDB.Double("ExtentError", "", DC_Frac, "%", xid_ExtentError, &Eq, isResult|noFile|noSnap|NAN_OK);
if (m_bDoResTime)
{
//DDB.Double("K_Rt", "", DC_, "", &dK_Rt, &Eq, isResult);
//DDB.Double("Defined_RT", "", DC_Time, "s", &m_ddDefinedResTime, &Eq, isParm);
//m_ddDefinedResTime.BuildDataDefn(DDB, "RT_Ref", "", DC_Time, "s", xid_RTRef, &Eq, "Rct", "Reqd");
//m_ddActualResTime.BuildDataDefn(DDB, "RT", "", DC_Time, "s", xid_ResTime, &Eq, "Actual", "Reqd");
//DDB.Double("Actual_RT", "", DC_Time, "s", &m_ddActualResTime, &Eq, isParm);
DDB.Double("Alpha", "", DC_, "", &m_dAlpha, &Eq, isResult);
}
// if (m_iXSpcId>=0)
// {
// DDB.String("ExtentSpc", "", DC_, "", &m_sExtentSpc, &Eq, 0|InitHidden|noFileAtAll);
// CCnvIndex dc;
// pchar pCnvTxt;
// SDB.AddSpCnv(DC_Frac, SDB[m_iXSpcId].SymOrTag(), "%", dc, pCnvTxt);
// m_ddExtentRqd.BuildDataDefn(DDB, "Extent", "", dc, pCnvTxt, xid_RCTExtent, &Eq, "Rct", "Reqd");
// }
};
示例2: Add_StandardDataDefn
void CrushBlk::Add_StandardDataDefn(DataDefnBlk & DDB, flag Vis)
{
DDEF_Flags Old = DDB.GetVisibility();
DDB.Visibility(NSHM_All, Vis);
DDB.Text("");
DDB.CheckBox("TrackStatus", "", DC_, "", &bTrackStatus, this, isParm);
static DDBValueLst DDB0[]={
{(int)CM_PartCrv_Overall, "Overall_PartCrv"},
{(int)CM_PartCrv_Individ, "Individual_PartCrv" },
{(int)CM_SelBreak, "Select/Break"},
{(int)CM_TestData_Overall, "Overall_TestData"},
{(int)CM_TestData_Individ, "Individual_TestData" },
//{(int)CM_JK, "JK" },
{0}};
DDB.Byte ("Method", "", DC_, "", xidMethod, this, isParmStopped/*|DDEF_SETONCHANGE*/, DDB0);
DDB.Visibility(NSHM_All, Vis && (iMethod==CM_PartCrv_Overall || iMethod==CM_PartCrv_Individ));
DDB.CheckBox("ForcePartCrv", "", DC_, "", &bForcePartCrv, this, isParm, DDBYesNo);
DDB.Visibility(NSHM_All, Vis && (iMethod==CM_TestData_Overall || iMethod==CM_TestData_Individ));
DDB.CheckBox("EnterExtents", "", DC_, "", xidEnterExtents, this, isParmStopped, DDBYesNo);
DDB.Visibility(NSHM_All, Vis && (iMethod==CM_JK));
DDB.Double("", "K1", DC_L, "mm", &dK1, this, isParm);
DDB.Double("", "K2", DC_L, "mm", &dK2, this, isParm);
DDB.Double("", "K3", DC_, "", &dK3, this, isParm);
DDB.Double("", "t10", DC_, "", &dt10, this, isParm);
//DDB.Visibility(NSHM_All, Vis);
DDB.SetVisibility(Old);
}
示例3: Add_ObjectDataDefn
void CrushBlk::Add_ObjectDataDefn(DataDefnBlk & DDB, flag Vis)
{
DDEF_Flags Old = DDB.GetVisibility();
DDB.Visibility(NSHM_All, Vis);
switch (iMethod)
{
case CM_PartCrv_Overall:
case CM_PartCrv_Individ:
DDB.Object(&DischParts, this, NULL, NULL, DDB_RqdPage);
break;
case CM_SelBreak:
case CM_JK:
DDB.Object(&SelBrk, this, NULL, NULL, DDB_RqdPage);
break;
case CM_TestData_Overall:
case CM_TestData_Individ:
if (!bEnterExtents)
DDB.Object(&DataParts, this, NULL, NULL, DDB_RqdPage);
DDB.Object(&Extents, this, NULL, NULL, DDB_RqdPage);
break;
}
DDB.SetVisibility(Old);
}