I am making an iCal type calendar widget and came across an issue that I can't seem to resolve. The calendar control should change it's outlook depending on whether the stack it is in is the active window or not. I can trap these messages at card level by having handlers for 'resume', 'resumeStack', 'suspend', and 'suspendStack' and then calling the control to change it's appearance.
However, I want to make this widget independent so it can be copied to new stacks and they would not need any extraneous code added to them. Anyone have ideas on how this can be done. Obviously it's possible as there are third party controls out there that do exactly this.
All answers appreciated,
ibe
Resume and suspend messages and controls
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Resume and suspend messages and controls
Setting the backgroundBehavior of the control's group to true allows it to get the suspend/resume messages.. Otherwise point out a third party control that does it and lets see if we can figure it out..
Re: Resume and suspend messages and controls
Sorry Shao, backgroundBeahvior isn't the answer as then the control would be on every window and that won't work for me. I know Steve has solved this problem with the Data Tree.
Re: Resume and suspend messages and controls
Does the data tree have a library stack or any front/back scripts?
Re: Resume and suspend messages and controls
Yes. That is the answer. I'll just make it into a library stack and use front scripts to handle the calendar.