Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
773 Views

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

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