McPanelsAddOrRemove Method (McCommandmcCheckState, String, 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
SyntaxPublic Function AddOrRemove (
checkState As McCommandmcCheckState,
name As String,
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
Three-state value controlling the operation - name
- Type: SystemString
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:
BooleanTrue - if control added successfully.
Remarks
See Also