
Canvas is of course a different control than HTMLViewer, but the actions required in the IDE are basically the same. Also checkout Xojo's YouTube series, there is an example of subclassing a Canvas. If you're not familiar with subclassing in Xojo, maybe this link can help UserGuide:Subclassing Examples. If you design your new subclassed capabilities well enough, you can hide (Private scope) or encapsulate complexity (new Public Methods) to help make each future use of your subclassed control much easier. A subclassed custom control can be reused multiple times, where each occurrence is a separate instance (with its own internal data). 66778: Framework Desktop: A DesktopCanvas, that’s embedded on a Container, now fires the DoublePressed event correctly. Subclassing makes any customized logic or data you add to the HTMLViewer self-contained, when the subclassed control is then added to your UI. Converting controls that have an unknown baseclass (typically when that baseclass doesn't exist in the project, for example when an external item isn't located), no longer throws an exception. WebContainers can only contain controls that are subclasses of WebUIControl.If I understand your question correctly, I think you should sub-class the HTMLViewer so that the subclassed control can be customized to handle cookie storage (a Property of type Dictionary?) and other custom Methods for any required handling. For the properties of the WebContainer, select LockVertical and LockHorizontal to ensure that the WebContainer always stays centered in the page displayed in the browser. To do so, put all your controls on a WebContainer and then add the WebContainer to a WebPage. Note: If there is an image associated with the control you may click on it to show a full-size. You can also use a WebContainer to center your page contents in the browser window. It also supports Web development and iOS developments. Also checkout Xojos YouTube series, there is an example of subclassing a Canvas. The WebContainer.ScrollDirection property controls which directions the user can scroll the WebContainer if any. You can create a scrollable view by creating a WebContainer and then after placing it on a webpage or other WebContainer, make the WebContainer on the page smaller than it would normally appear. Itʼs also useful for creating scrollable views. This set of controls will give your applications a. This class is useful for creating reusable sets of controls. Custom UI is a complete set of Custom Controls bringing customization to the highest possible level.
Xojo controls code#
The code is there, but it doesnt appear to. For example, Window is now DesktopWindow and TextField is now DesktopTextField. Most important so far is that I dont seem to be getting Open events in my dynamically created WebContainer controls. Each of these controls replaces its original control counterpart and is prefixed with Desktop.

In addition, with a WebContainer, you can create reusable controls to include on multiple web pages or on other web containers. New Desktop Controls Published Novemby Geoff Perlman Xojo 2021 Release 3 introduces a new set of Desktop controls.

A WebContainer is a great way to simplify complex web page layouts. It is very easy to use with explicit tags that modify the style of each part of your text. 1 The BBCode scripting language is used on most forums over the Internet. B BCode Label offers advanced styling capabilites as a replacement for the Label in all your Xojo projects.
Xojo controls software#
A WebContainer is a way to create a group of controls that are treated as a single control. Software Design & Development by Jeremie Leroy.
