Using .net user control with 4GL (adm2) container

The sample shows how a .net user control can be used with an ADM2 container. There is no specific support for ADM2 otherwise (links, etc) but it should be quite possible to modify the window super-proc to support automated display of date values in a date picker, f.ex, along the lines it's done for the JukeBox framework.

Components:

JBoxWrapWindowInForm.p:
Super proc for container that keeps track of control(s) in window, (re-)creates the window menu as .net menu and manages resize of control(s)

JBoxWrapperForm.cls:
The form itself with the windowContainer and (optional) menuStrip

ResizeLib,p:
General purpose resize library for 4GL windows.
The user control will resize and move according to the rules applied to it's 4GL placeholder (normally a rectangle). For more doc on usage see www.chemistry.no

uc\JBoxUCbase.cls:
Basic methods for managing the (any) user control

uc\JBoxUltraGantt.cls:
Specific user control that extends the base class for the specific control type (the Ultra Gantt control is only available with V11).


AttachmentSize
adm2UltraGanttSample.zip67.55 KB