Ultra Light Client Guide and Reference


Shell general advice

Code example

The shell is owned and managed by UlcApplication. All shells under one instance of UlcApplication belong to the same end-user application.

(UlcApplication on: UlcContext default)
 add: (UlcShell new label: 'Customer Information'; yourself)

A shell can open other subshells (children) for which this shell acts as parent. The following code opens an instance of UlcShell in modal state:

(UlcShell new label: 'Model Shell') modal: true
When a shell is opened as modal, most parts now support the BlockInputTrigger action. This trigger displays the busy cursor and blocks further user input till an answer has been received from the ULC server.
Note:When setting the destroyOnClose flag to true, make sure that the receiver and all of its children are no longer used anywhere. For example, if you set the destroyOnClose flag to true then you can no longer use show after you have hidden and closed the shell, since the resources have already been freed.
Note:When a Shell is closed it automatically notifies its ULCApplication and if there are no other shells opened the ULCApplication will terminate itself.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]