• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X Scripting - Skill
  3. FORM - ABORT (doneState == 3) IGNORES axlUIYesNo() - BUG...

Stats

  • Replies 1
  • Subscribers 17
  • Views 3475
  • Members are here 0
More Content

FORM - ABORT (doneState == 3) IGNORES axlUIYesNo() - BUG?

mir0mik
mir0mik over 4 years ago

Hi,

I've noticed a strange behaviour of the SKILL form...

See the short sample code - when you run this code and you close the form with [X] it will ignore the axlUIYesNo()... (see the callBack function > doneState == 3 section it should show Yes/No then Confirm)

Is this a bug or did I something wrong?

I also noticed when I removed the FIELD line from the form definition it works correctly... If I add any "action" field (button/fillin) into the form it will ignore the axlUIYesNo()...

Regards,

Miro

defvar( www_formBugs "
FILE_TYPE=FORM_DEFN VERSION=2 \n
FORM FIXEDFIELDORDER \n
FIXED \n
PORT 42 40 \n
HEADER \"FORM BUGS DEMONSTRATOR\" \n
TILE \n
GROUP \"GROUP BOX\" \n FLOC 1 1 \n FSIZE 40 5 \n
TEXT \"CLOSE THE FORM WITH [X]\" FLOC 3 3\n ENDTEXT\n
ENDGROUP \n
FIELD www_formButton_QQQ \n FLOC 1 8 \n MENUBUTTON \"BUTTON\" 2 2 \n ENDFIELD \n
ENDTILE \n
ENDFORM \n
")

defun( www_formBugsCallBack ( www_formBugsCurrentAction)
when( www_formBugsCurrentAction -> doneState == 3
axlUIYesNo( "THIS IS AUTOMATICALLY SKIPED")
axlUIConfirm( "THIS WILL BE SHOWN ALWAYS")
)
when( www_formBugsCurrentAction -> curField == "www_formButton_QQQ"
axlUIConfirm( "BUTTON PRESSED")
)
)

www_formID = axlFormCreate( gensym() list( "FORM BUGs" list( www_formBugs)) nil 'www_formBugsCallBack t)
axlFormDisplay( www_formID)

  • Cancel
  • Sign in to reply
Parents
  • mir0mik
    mir0mik over 4 years ago

    I've just tested it in 17.4 it works ok there, in 17.2 is not...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • mir0mik
    mir0mik over 4 years ago

    I've just tested it in 17.4 it works ok there, in 17.2 is not...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information