Click or drag to resize

McPanelsAddOrRemove Method (McCommandmcCheckState, Type, String, String, mcPanelLocation, Rectangle, mcControlType, String, String, Object, mcPanelsOptions)

Add or remove a panel depending on the value of checkState.

Namespace:  MediaCy.IQL.Application
Assembly:  MediaCy.IQL.Application (in MediaCy.IQL.Application.dll) Version: 3.1.0.0
Syntax
VB
Public Function AddOrRemove ( 
	checkState As McCommandmcCheckState,
	controlType As Type,
	key As String,
	caption As String,
	location As mcPanelLocation,
	undockedRect As Rectangle,
	Optional type As mcControlType = mcControlType.mcctUserControl,
	Optional tabKey As String = Nothing,
	Optional tabCaption As String = Nothing,
	Optional userParams As Object = Nothing,
	Optional options As mcPanelsOptions = mcPanelsOptions.mcpoNone
) As Boolean

Parameters

checkState
Type: MediaCy.IQL.ApplicationMcCommandmcCheckState
Tri-state value controlling the operation
controlType
Type: SystemType
Type of object of type Control
key
Type: SystemString
unique key of the control
caption
Type: SystemString
caption of the control
location
Type: MediaCy.IQL.ApplicationmcPanelLocation
initial location of the control
undockedRect
Type: System.DrawingRectangle
location of the panel (used only for Undocked panel)
type (Optional)
Type: mcControlType
type of the control: UserControl, ExpandablePanel
tabKey (Optional)
Type: SystemString
unique key of the tab
tabCaption (Optional)
Type: SystemString
caption for bar/tab (if empty then caption used)
userParams (Optional)
Type: SystemObject
see IMcPanelControl interface
options (Optional)
Type: MediaCy.IQL.ApplicationmcPanelsOptions
mcpoUpdateSize - update size of the bars, mcpoDoNotDispose - do not dispose control on ControlRemoved

Return Value

Type: Boolean
True - if control added successfully.
Remarks