realbasic-betas.mbox
[Top] [All Lists]

Prerelease: Broadcaster plugin to delegate Event handling: nyadonvu

To: <realbasic-nug at lists dot realsoftware dot com>, <realbasic-betas at lists dot realsoftware dot com>
Subject: Prerelease: Broadcaster plugin to delegate Event handling: nyadonvu
From: Alfred Van Hoek <vanhoek at mac dot com>
Date: Tue, 31 Aug 2004 16:13:26 -0400
Cc:
Delivered-to: realbasic-nug at lists dot realsoftware dot com
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>

<Prev in Thread] Current Thread [Next in Thread>
  • Prerelease: Broadcaster plugin to delegate Event handling: nyadonvu, Alfred Van Hoek <=