Altera_Forum
Honored Contributor
17 years agoAdding GUI functionality to TCL script
I have a QuartusII project that can be compiled with a multitude of options set via a vhdl package to make many different products.
Unfortunately it is possible to configure these options in invalid combinations. I would like to make a tcl script to evaluate the options and report the result back to the user trying to compile the project giving them the option to continue or cancel. I can assign a script to PRE_FLOW_SCRIPT_FILE which makes the script run before compilation starts, but I would like a message box to appear with OK and Cancel buttons. So my question is can I (and how) make a message box with buttons appear through a script running on QII? I tried putting the code into the QII tcl console to make a button appear but it didn't work. The same code put into QFlow did work. But the same code in a script produced an error because it didn't recognise the 'button' command. Any ideas?