- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page