Feature #12043
replacement for the DBI ctList ActiveX control (list grid)
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:
0%
billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
reviewer:
production:
No
env_name:
topics:
History
#1 Updated by Greg Shah about 1 month ago
Replacement for the DBI ctList ActiveX control (list grid)¶
Project: User Interface
Problem¶
ctList (DBI Technologies Component Toolbox,ctList.ocx 5.0) is a multi-column list grid populated at run time. Applications that use it heavily rely on:
- Rows:
AddItemwith caret-delimited cell text,ListCargocarrying a key per row,Clearlist,SELECTED,listindex,listcount. - Cells:
CellText,CellCheckfor check cells,CellPicturefor per-cell icons. - Columns: defined at design time in the
.wrx(CColumnHeaderrecords) in most screens, and at run time withAddColumnin a few. Header-click sorting throughSortColumn,SortDirection,SortListandColumnSortable. - Editing: in-place cell editing in a few screens.
- Events:
CheckClick,ItemClick,RightClick,ItemDblClick,Change,KeyDown.RightClickusually opens a ctDropMenu. - Cell icons come from the embedded bitmaps in the
.wrxor from a ctImage.
FWD has the TREELIST infrastructure and a LISTVIEW widget built on it (#3857), neither of which has check cells, per-cell pictures, per-row cargo, header sort state, a right-click event or in-place editing.
Work¶
- Build a list grid widget on the TreeList infrastructure covering the surface above, so that the Microsoft ListView (#3857) can share it.
- Add check cells, per-cell pictures, per-row cargo, header sort state and sorting, a right-click event, and in-place cell editing.
- Register the control's CLSID in the OCX registry (
ocx-registry.xml), mapping it to the target widget, as #11919 did for ctToolBar. - Decode the design-time state the control keeps in the
.wrxstorage at conversion time, so that it exists after conversion. - Implement the members and events listed above on the target, with the vendor's semantics: argument types, return values, defaults, and the order in which events fire. Members of the type library that are not used become no-ops with a conversion warning, as the OCX pipeline already does.
- Follow the OCX emulation playbook attached to #11919: an OpenEdge test program with goldens for each member and event, recorded input sequences for the interactive parts, and Lyra automation.
- Update the gap marking and the OCX registry documentation.
Testcases¶
Each member and event above, exercised on Windows OpenEdge with the real control to produce goldens, then run against the FWD replacement on the web and Swing clients. The vendor help files are the reference where behaviour cannot be observed directly.