Well, you could pretty much do this yourself.
Just write a macro that inserts the skeleton code you desire. Have it start off with a GUI comment that looks like:Or, you could change the WINDOW line a little if you want different defaults. Or maybe add some other lines to define a MENU, string table, whatever.
Then follow it up with the skeleton code you want. Something like this:
OPTIONS "C_CALL NOSOURCE"
skeleton = "" || "0d0a0d0a"X ||,
,
"" ||,
"0d0a0d0a"X || 'OPTIONS "c_call labelcheck nosource"' || "0d0a0d0a"X || "" || "0d0a"X || "DO" || "0d0a09"X || "RXFUNCADD('rexxgui')" || "0d0a"X ||,
,
"0D0A09"x || "CATCH FAILURE" || "0D0A0909"x || 'CONDITION("M")' || "0D0A0909"x || "RETURN" || "0D0A"x || "END" || "0D0A0D0A"x ||,
,
'GuiErr = "SYNTAX"' || "0D0A"x || "GuiHeading = 1" ||,
"0D0A0D0A"x || "" || "0d0a"X || "guicreatewindow('NORMAL')" ||,
,
"Again:" || "0D0A"x || "DO FOREVER" || "0D0A0D0A09"x || "GuiGetMsg()" || "0D0A09"x || "IF EXISTS('GuiObject') == 0 THEN DO" || "0D0A0909"x || "IF EXISTS('GuiSignal') THEN DO" ||,
"0D0A0909"x || "" ||,
"0d0a0909"X || "END" || "0d0a09"X || "END" || "0d0a09"X || "ELSE DO" || "0d0a0909"X || "IF EXISTS('GuiSignal') == 0 THEN DROP (guiobject)" || "0d0a0909"X || "ELSE SELECT guiobject" || "0d0a0909"X ||,
"" || "0d0a090909"X || "WHEN 0 THEN NOP" || "0d0a0d0a090909"X || "OTHERWISE" || "0d0a0909"X ||,
"END " || "0d0a09"X || "END " || "0d0a0d0a09"X ||,
"CATCH SYNTAX" || "0d0a0909"X || "CONDITION('M')" || "0d0a0909"X || "SIGNAL again" || "0d0a0d0a09"X || "FINALLY" ||,
,
"0D0A09"x || "GuiDestroyWindow()" || "0D0A"x || "END" || "0D0A"x || "RETURN"
rexxederr = "ERROR"
DO
editopendoc()
editselect(, , skeleton, 'TEXT')
END
CATCH ERROR
CONDITION("M")
|