Broadcaster plugin is available to delegate the action of certain controls
like the timer.action, pushbutton.action, slider.valuechange, scrollbar,
pagepanel, contextualmenu, radiobutton and other interesting controls. These
controls are sublcassed and end in "Broadcaster". Example:
Window1.StaticText1.Open:
Sub Open()
me.setmeUp
End Sub
staticTextTimerListener is a subclassed statictext that implements the
interface "ActionListener" defining the method "Action"
staticTextTimerListener.Action:
dim counter as integer
Sub Action()
counter = counter+1
me.text = str(counter)
End Sub
staticTextTimerListener defines a method:
staticTextTimerListener.SetMeUp:
Sub SetMeUp()
timedevice = new TimerBroadCaster
timedevice.append me
timedevice.period = 100
timedevice.mode = 2
End Sub
which is called in the open event of the statictext1 or a push button
control.
This is an early release, documentation etc will follow over the weekend.
Download: <http://homepage.mac.com/vanhoek/BroadcasterPlugin.zip>
It is free, comes with the above example..
Yes, it does the things requested in nyadonvu. This plugin has been around
for a while, and I realized after reading the discussions between Charles,
Brady and Theodore on the nug, that this might be helpful..
Alfred
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|