ControlContext :: removeRegion - Remove region and columns
The function allows removing a region from a tree or list view. The function throws an exception, when the region is not valid.
After changing a list definition by removing columns or regions, the region has to be refreshed by calling refresh().
Implementation overview
- Remove region and columns
ControlContext :: removeRegion ( iRegionID, bRemoveColumns ) - Remove region and columns
ControlContext :: removeRegion ( sName, bRemoveColumns )
Implementation details
-
Remove region and columns
ControlContext  :: removeRegion ( int64 iRegionID, bool bRemoveColumns )
The region with the identifier passed in iRegionID will be removed from the list schema. In order to remove all regions for the control, 0 might be passed in iRegionID. iRegionID is either the id returned from addRegion or the instance LOID from the region resource (Designer)
In order to remove only columns from the region definition, true has to be passed in bRemoveColumns.
- iRegionID
- Region identification
The region identifier is either the resource identity for the region definition (in case the region has been created from an external resource defined in a resource database) or the internal column identifier returned from the ControlContext::addRegion() function.
- bRemoveColumns
- Remove columns
In order to remove columns from the region definition, this options has to be set to true.
to list
- iRegionID
- Region identification
-
Remove region and columns
ControlContext  :: removeRegion ( odaba::String &sName, bool bRemoveColumns )
The region with the resource name passed in sName will be removed from the list schema. In order to remove all regions for the control,
In order to remove only columns from the region definition, true has to be passed in bRemoveColumns.
- sName
- Resource or entity name
The name refers to a design or GUI resource.
- bRemoveColumns
- Remove columns
In order to remove columns from the region definition, this options has to be set to true.
to list
- sName
- Resource or entity name

