Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16606 Discussions

_hw.tcl files: Example for usage of display item ACTION callback function needed

Altera_Forum
Honored Contributor II
1,087 Views

Hi! 

 

Somebody out there who has managed to get a callback function for a display item of kind ACTION in a _hw.tcl file working? 

 

This is an example of a piece of code in which everything works, except that the function buy_washing_machine_callback seems not to be called when clicking the button in the parameter editor GUI for the component. 

 

proc buy_washing_machine_callback {} { send_message { Info Text } "Congratulations! You just bought our new wasching machine model!" } add_display_item "Shopping Area" buy_washing_machine ACTION buy_washing_machine_callback set_display_item_property buy_washing_machine DISPLAY_NAME "Buy me!" set_display_item_property buy_washing_machine DESCRIPTION "You want to click this button, don't you?" add_display_item "Shopping Area" buy_button_image ICON WashingMachine.jpg 

 

Any washing machine pic in thumbnail size from the internet will do for WashingMachine.jpg. The file must reside in the same directory as the _hw.tcl file. 

 

Thanks 

Markus
0 Kudos
0 Replies
Reply