masteriop.blogg.se

Xojo pass a control as a property
Xojo pass a control as a property










xojo pass a control as a property

There are a few things you need to be aware of:

#Xojo pass a control as a property code#

For example, if you put code in the MouseMove event of an embedded ContainerControl, the event will fire when your mouse moves over the embedded ContainerControl's boundaries. Increase encapsulation of complex window layouts,įor the most part, ContainerControls act as you would expect. Organize groups of controls into reusable interface components,Ĭreate custom controls made up of several constituent controls, Use the same approach to embed the ContainerControl in a control other than a PagePanel or TabPanel for the latter types of controls, use EmbedWithinPanel and pass the name of the control and the desired panel number.ĬontainerControls have multiple uses, You can: When the project is run, the controls in the ContainerControl appear in the default window, Window1. The following statement embeds a ContainerControl at so that its top left corner is 50 points from the left side of the window and 100 points from the top.ĬontainerControl1. To remove the container, use the Close method. It allows you to pass the page number on which the ContainerControl will be embedded. For the special case of embedding within a PagePanel or a TabPanel, use EmbedWithinPanel instead. Use EmbedWithin to embed the ContainerControl in either a window or a control, depending on whether the first parameter is a Window or a control. To add the ContainerControl to a window via code, use either the EmbedWithin or EmbedWithinPanel methods. Multiple levels of embedding are supported. You can embed a ContainerControl in a Window or ContainerControl in either the IDE or via code. Like a Control, a ContainerControl can be added to a Window, a TabPanel, a PagePanel, or to another ContainerControl. Like a Window, a ContainerControl can encapsulate related Controls (and other ContainerControls) in a self-contained, reusable class. It is a separate class that is similar to Control and to Window, providing many of the same events, properties, and methods. EventsĬontainerControls can not be part of a Control Set.ĬontainerControl is not a Control (despite its name), nor is it a Window. Used to embed a group of controls in a Window or in another control.












Xojo pass a control as a property