7/20/2023 0 Comments Xojo controls![]() To update a specific control on a Window, right-click on the control and choose “Update to ”.To update a ContainerControl and all of its controls, right-click on the ContainerControl in the Navigator and choose “Update to DesktopContainer”.To update a Window and all of its controls, right-click on the Window in the Navigator and choose “Update to DesktopWindow”.To update a single class (including the Application class), right-click on it and choose “Update to ”.To update the entire project, chose Project > Update Controls to API 2.0.When you are ready to update a project with a new Desktop control, launch your project in Xojo 2021r3 (or future releases) and chose what you want to update: Because the new Desktop controls currently share nearly all of the same implementation under the hood, bug fixes to them will likely also pass through to their original control counterparts. But don’t be overwhelmed! You project will continue to run as-is, allowing you to take your time to update. Whether you update a project or not is a decision you can make on a project by project basis. And even then, you can update only the specific controls you want. For your existing, large projects, update the controls when you need to. But, once a project has any new project items in it, it is incompatible with Xojo releases prior to 2021r3. You can mix and match old and new controls on layouts. ![]() Transitioning to the new Desktop controls can be done at your leisure.Įxisting Projects: When you open a project you created prior to 2021r3, you can continue to use the original Desktop controls. You can update one function, one class or the entire project at once. There’s no rush to begin using these new Desktop controls, your existing code will continue to function for many years. These new controls make more of your code work without changes when you move from one project type to another. The new Desktop controls use the same underlying implementation so, for example, Window and DesktopWindow, look the same and behave the same to the end user. Desktop controls are now a much closer match in terms of API to their Web and Mobile counterparts. ![]() The driving logic behind these new controls is both historical and technical, they allow us to make the event names match the Web and Mobile versions and give us the opportunity to make other changes to some methods that would have been problematic to make in the existing controls. For example, Window is now DesktopWindow and TextField is now DesktopTextField. Each of these controls replaces its original control counterpart and is prefixed with Desktop. Xojo 2021 Release 3 introduces a new set of Desktop controls.
0 Comments
Leave a Reply. |