Skip to main content
Version: 9.0.2

gre.redraw

gre.redraw(
x,
y,
width,
height,
[channel]
)

Force a screen redraw.  channel is an optional parameter. Specifying a x,y,width,height of 0 will result in a full screen refresh occurring.

Parameters

ParameterTypeDescription
x#numberThe x position of the redraw bounding box event.
y#numberThe y position of the redraw bounding box event.
width#numberThe width position of the redraw bounding box event.
height#numberThe height position of the redraw bounding box event.
channel An optional Storyboard IO channel to send the event on, if not specified the event is added directly into the current Storyboard application event queue if neither the environment variable or global GREIONAME variable are set.

Returns

TypeDescription
#booleantrue for success, false for failure and error message string, e.g. "Can't open greio channel my_channel"

Example

function CBRedraw()
gre.redraw(25, 50, 100, 100)
end

function CBSendRedraw()
local success, error = gre.redraw(25, 50, 100, 100, "my_channel")
if(success == false) then
print(error)
--handle error
end
end