Click or drag to resize

McPanelsAdd Method (String, String, String, mcPanelLocation, Rectangle, mcControlType, String, String, Object, mcPanelsOptions)

Add control into panels (control may implements IMcPanelControl interface).

Namespace:  MediaCy.IQL.Application
Assembly:  MediaCy.IQL.Application (in MediaCy.IQL.Application.dll) Version: 3.1.0.0
Syntax
VB
Public Function Add ( 
	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

name
Type: SystemString
name of the control in format AssemblyFileName.ControlClassName or dialog name
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, mcpoNotPersistable - do not load this control at startup.

Return Value

Type: Boolean
True - if control added successfully.

Implements

IMcPanelsAdd(String, String, String, mcPanelLocation, Rectangle, mcControlType, String, String, Object, mcPanelsOptions)
Remarks
Any control of type Forms.Control could be added in to panels.
See Also