![]() ![]() Now that the layout of the ContainerControl is done, it’s time to add it to the Windows or Panels. Locked ContainerControl Locked Window Using ContainerControls in the Window Layout Please note, control’s locks will act on the top, left, right and bottom sides of the ContainerControl they are embedded on as opposed to using the locks on the ContainerControl itself which locks the position of the container over the top, left, right and bottom sides of the Window where the container is used. Start by adding a new ContainerControl from the Library to the Navigator (by default, it will be named ContainerControl1), select it in the Navigator to access the Layout Editor. You can use the Inspector Panel to setup the properties. If you look at the properties, methods and events offered by the ContainerControl you’ll find many of these are the same ones available in the Window class.ĭownload the Example Project for this tutorial ContainerControl LayoutĪdding other controls to a ContainerControl couldn’t be simpler. The ContainerControl is a component half way between the available controls in the Library (inherited from the Control class) and a Window. ![]() The ContainerControl is your best bet to avoid these repetitive tasks. Obviously, adding the same bunch of controls again and again on each window is not the best solution even less so when we consider the need to add the exact same code in each of these controls. However, sometimes we need to display exactly the same combination of controls, using the same layout, in several windows of an app. Xojo’s Library offers a good amount of UI controls ready to use: buttons, input text controls, lists, popup menus, progress bars, panels, labels, a control to play movies, etc. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |