Finally, I done it (with many help and patience from you). One more question.
Can I add a check box on the bottom of the “ Grid Panel” like in the attached picture (4 DVMs - Grid Panel - On Top Check Box), in order to turn ON & OFF the “ On Top” option?
; ================================ Meta Definition ================================
#metadef
; The empty #metadef will use the #meta exactly as it is, you can then fill or add other #metadef that overrides what needs to be changed for other devices.
;(0,255,0): (R, G, B) RGB colour code
; yellow
#replaceText CH1_COLOR (255,255,0)
; green
#replaceText CH2_COLOR (0,255,0)
; orange
#replaceText CH3_COLOR (255,128,0)
; blue
#replaceText CH4_COLOR (150,150,255)
; charcoal blue
#replaceText DVMS_BACKROUND_COLOR (54,68,78)
#meta
#author 2X
#idString Rohde&Schwarz,RTB2004,
#name R&S RTB2004
#handle RTB2004
#port 5025
; Alternate port types: comnobaud or com, com lets the user define baudrate on the "Load devices" page
; --------------------------------------------------------------------------------
; ================================ SCPI Commands ================================
; Create four Coloumns for reading values from 4 digital voltmeters of RTB24
#value DVM1_Voltage V SI
#value DVM2_Voltage V SI
#value DVM3_Voltage V SI
#value DVM4_Voltage V SI
; Read measurement/values from four oscilloscope Digital Multimeters(DVMX)
#askValues DVM1:RESult?; DVM2:RESult?; DVM3:RESult?; DVM4:RESult?
; ------------------------------------------------------------------------
; ========================== Other Menu Steup ================================
; Create "Other" menu button
#otherList
menuItem[0]="Display voltmeters.txt";
#otherText
if (name=="Display voltmeters.txt")
runScriptAsync("""#CLOSEALL
\x23ShowPopupSystem GridPanel 77 20 1092 321
\x23GridPanel 1 4
\x23GridPanel Readout RTB2004.DVM1_Voltage dh CH1_COLOR DVMS_BACKROUND_COLOR
\x23GridPanel Readout RTB2004.DVM2_Voltage dh CH2_COLOR DVMS_BACKROUND_COLOR
\x23GridPanel Readout RTB2004.DVM3_Voltage dh CH3_COLOR DVMS_BACKROUND_COLOR
\x23GridPanel Readout RTB2004.DVM4_Voltage dh CH4_COLOR DVMS_BACKROUND_COLOR
""");
endif;
; ------------------------------------------------------------------------