Quantcast
Channel: Cadence Community
Viewing all articles
Browse latest Browse all 3331

axlselect not getting cancelled using popup menu Cancel option

$
0
0

All,

 

 I am defining a popup to cancel axlselect in the interactive mode .. I need to twice select Cancel in the popup to exit the axlselect command.

How to  determine the axlselect command is exited – tried using axlOKToProceed() while axlSelect command is active it returns ‘t’

 Below is the code.. what am I missing?

 Appreciate your help.

-----------------------------------------------------------------------------

 procedure( testpopup()

 mypopup = axlUIPopupDefine( nil '(

("Next", "myNext()" )

("Oops", "myOops()" )

("Cancel", "myCancel()" )

("Done", "myDone()" )

))

 

axlUIPopupSet(mypopup)

axlSetFindFilter(?enabled '(noall symbols) ?onButtons '(noall symbols))

dbids= axlGetSelSet(axlSelect(?prompt "Select components"))

 

if(dbids then

axlUIWPrint(nil "- symbol selected -")

else

axlUIWPrint(nil "- symbol not selected -")

)

 ) ; end procedure

 

 procedure( myNext()

axlUIWPrint(nil "- Next -")

)

 procedure( myOops()

axlUIWPrint(nil "- oops -")

)

 procedure( myCancel()

axlUIWPrint(nil "- Cancel -")

axlCancelEnterFun()

axlUIPopupSet(nil)

)

procedure( myDone()

axlUIWPrint(nil "- Done -")

)

-------------------------------------------------

 Thanks,

Nagaraj.

 

Viewing all articles
Browse latest Browse all 3331

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>