Genero Desktop Client 2.21 New Features / Experimental features: Genero Desktop Client 2.21 New Features |
Two new frontcalls have been added in the standard frontcall library: storeSize and restoreSize.
This allows you to create the classic GUI with Show/Hide details.
ON ACTION details IF state = 1 THEN CALL f.setElementHidden("g2",1) CALL f.setElementText("details","&Show details") CALL ui.interface.frontCall("standard","restoreSize",[200],[ret]) LET state = 0 ELSE CALL ui.interface.frontCall("standard","storeSize",[],[ret]) CALL f.setElementHidden("g2",0) CALL f.setElementText("details","&Hide details") LET state = 1 END IF
The restoreSize frontcall takes an optional parameter to define the delay (in milliseconds) used to revert the window size. The window will then smoothly shrink or grow to reach the saved size instead of having its new size immediately.