Messages can be sent from one widget to another, I do something similar with a pop up calender, parts of the code are below, hope this helps.
// send messages to the remote widget msg("close","YearCalendar") msg("hide","YearCalendar") msg("show","YearCalendar")
//Message code in the remote widget function widgetOnMsg(MsgString) { if(MsgString=="close") // remote close { close(); } if(MsgString=="hide") // remote hide { widget.visible=false; } if(MsgString=="show") // remote show { yearOnClick() widget.visible=true; }
|