iCAx开思网

标题: CAA高手帮忙看看状态转移的问题 [打印本页]

作者: flyerfang    时间: 2006-2-23 17:00
标题: CAA高手帮忙看看状态转移的问题
AddTransition( stState2, stState3,
                 IsOutputSetCondition (_ElementAgent1),
                 Action ((ActionMethod) &SimAnglePlaneCmd::SelectLine));
   AddTransition( stState3, NULL,
                 IsOutputSetCondition (_OKAgent),
                 Action ((ActionMethod) &SimAnglePlaneCmd::OkAction));
这样点击ok时 程序没有反映 ?是不是状态转移的有问题?
多谢
想了n久
用这个办法我做成了线的复制 但这样做面的旋转时 就不行了
作者: flyerfang    时间: 2006-2-23 17:03
标题: state 是这样设置的
CATDialogState *stState1 = GetInitialState("Surface");
    stState1 -> AddDialogAgent (_ElementAgent);
   
    CATDialogState *stState2 = AddDialogState("Line");
    stState2 -> AddDialogAgent (_ElementAgent1);

    CATDialogState *stState3 = AddDialogState("OK ");
    stState3 -> AddDialogAgent (_OKAgent);

    CATDialogState *stState4 = AddDialogState("CONCEAL ");  
    stState1 -> AddDialogAgent (_CancelAgent);
作者: saeba    时间: 2006-2-23 17:37
Did you add any callback for the OK button for your dialog? (in your source file of the dialog/panel)
if yes, the transaction won't work.
作者: flyerfang    时间: 2006-2-24 09:43
yeah.i have added the callback function for OK button.
the problem have been solved. Thanks Saeba.
because i do other executing function in Dlg.cpp. so delete them . then it's ok.

thanks very much!




欢迎光临 iCAx开思网 (https://www.icax.org/) Powered by Discuz! X3.3