If the event was fired because of a non-mouse event, then x and y are both set to -1. The parameters x and y are the mouse locations. If you return True, the contextual menu is displayed. If you return False, the event is passed up the parent hierarchy. Any items you add to Base will be shown as menu items. Depending on platform, it might be in the MouseUp or MouseDown event and it might be a right+click or by pressing the contextual menu key on the keyboard, for example.īase is analogous to the menu bar for the contextual menu. This event handler is the recommended way to handle contextual menus because this event figures out whether the user has requested the contextual menu, regardless of how they did it. This event is called when it is appropriate to display a contextual menu for the control. Reporting bugs and making feature requestsĭesktopBevelButton.ConstructContextualMenuĬonstructContextualMenu(Base As DesktopMenuItem, x As Integer, y As Integer) As Boolean.Interface IContainerControl Public Class ContainerControl Public class ContainerControl :, type ContainerControl = class In this article public ref class ContainerControl : System::Windows::Forms::ScrollableControl, System::Windows::Forms::IContainerControl public class ContainerControl :, Provides focus-management functionality for controls that can function as a container for other controls. The container control does not receive focus the focus is always set to the first child control in the collection of contained controls. You do not typically inherit directly from the ContainerControl class. Form, UserControl, and UpDownBase classes inherit from ContainerControl. Initializes a new instance of the ContainerControl class.ĭetermines the value of the AutoScroll property.ĭetermines whether the user has enabled full window drag.ĭetermines whether the value of the HScroll property is set to true.ĭetermines whether the user had scrolled through the ScrollableControl control.ĭetermines whether the value of the VScroll property is set to true. Gets the AccessibleObject assigned to the control. Gets or sets the default action description of the control for use by accessibility client applications. Gets or sets the description of the control used by accessibility client applications. Gets or sets the name of the control used by accessibility client applications. Gets or sets the accessible role of the control. Gets or sets the active control on the container control. Gets or sets a value indicating whether the control can accept data that the user drags onto it. Gets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent. Gets or sets the dimensions that the control was designed to. Gets the scaling factor between the current and design-time automatic scaling dimensions. Gets or sets the automatic scaling mode of the control. Gets or sets a value indicating whether the container enables the user to scroll to any controls placed outside of its visible boundaries. Gets or sets the size of the auto-scroll margin. Gets or sets the minimum size of the auto-scroll. Gets or sets where this control is scrolled to in ScrollControlIntoView(Control). Gets or sets the location of the auto-scroll position. This property is not relevant for this class. Gets or sets a value that indicates whether controls in this container will be automatically validated when the focus changes. Gets or sets the background color for the control. Gets or sets the background image displayed in the control. Gets or sets the background image layout as defined in the ImageLayout enumeration. Gets or sets the BindingContext for the control. Gets the distance, in pixels, between the top edge of the control and the top edge of its container's client area. Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control. Gets a value indicating whether the ImeMode property can be set to an active value, to enable IME support. Gets a value indicating whether the control can receive focus.ĭetermines if events can be raised on the control. Gets a value indicating whether the control can be selected. Gets or sets a value indicating whether the control has captured the mouse. Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus. Gets the rectangle that represents the client area of the control. Gets or sets the height and width of the client area of the control. Gets the name of the company or creator of the application containing the control. XOJO LOOP THROUGH CONTAINERCONTROLS FULL.
0 Comments
Leave a Reply. |