!7 cmodule GrabScreenshot > DynImageSurface { S computerID; int width = 256; visualize { ret northAndCenterWithMargins(vstackWithSpacing( centerAndEastWithMargin( withLabel("Grab from:", dm_onlineComputerSelectorComboBox(dm_fieldLiveValue('computerID))), jbutton("Grab", rThread grab)), jRightAlignedLine(jLabel("Resize to width (pixels):"), jMinWidth(100, jLiveValueIntTextField(dm_fieldLiveValue('width))))), super.visualize()); } void grab enter { if (possibleComputerID(computerID)) loading "Grabbing Screenshot..." { setImage( width == 0 ? dm_screenshotFromOtherMachine(computerID) : dm_scaledDownScreenshotFromOtherMachine(computerID, width)); } } }