Skip to main content
Version: 9.0.2

sb.redraw

sb.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 stringAn 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
booleanReturns: true for success, false for failure.

Example

function CBRedraw() {
sb.redraw(25, 50, 100, 100)
}

function CBSendRedraw() {
var success, error = sb.redraw(25, 50, 100, 100, "my_channel");
if(success == false){
print(error)
}
}