I found a different implementation of a popup message display (in the
Screenshot applet), and put it into a standalone function.  This version
disappears after the specified number of milliseconds.  I'm assuming the
problem with the earlier version is in the 'showBriefly' method, but
since the version below works I can worry about that later.

Code:
--------------------
    -- This is a simple on-screen message.
  function mypopup(self, msg, millis)
        local popup = Popup("toast_popup")
        local group = Group("group", {
                text = Textarea('toast_popup_textarea',msg),
        })
        popup:addWidget(group)
  
        popup:addTimer(millis, function()
                popup:hide()
        end)
        self:tieAndShowWindow(popup)
  end
  
--------------------


------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110167

_______________________________________________
jive mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive

Reply via email to