The Window class / Examples |
MAIN DEFINE w ui.Window DEFINE f ui.Form OPEN WINDOW w1 WITH FORM "customer" LET w = ui.Window.getCurrent() IF w IS NULL THEN EXIT PROGRAM END IF LET f = w.getForm() MENU "Test" COMMAND "hide" CALL f.setElementHidden("gb1",1) COMMAND "exit" EXIT MENU END MENU CLOSE WINDOW w1 END MAIN