First, I would like to create a new object named “MyCombo”, a DesktopTextField with a DesktopCheckBox on his side
Where can i read about this on documentation, and also, is that any video with examples?
Second, is it possible to edit (show or hide) some object behavior from code?
like this:
if a DesktopTextField i set on behavior’s type “A”, it shows (or hide) some behaviors
if a DesktopTextField i set on behavior’s type “B”, it shows (or hide) other behaviors
You could do this with a ContainerControl (now named DesktopContainer).
There is an example project located at Example Projects/Platforms/Desktop/Custom Controls/OKCancelContainer.xojo_binary_project that shows how you can make a custom control using a container.
Take a look at the computed properties to see how you can execute code on the container when a property is set. This will allow you to change, show, or hide behaviors when you set the type to “A” or “B”.
After you take a look at this example project and experiment with building your own, let us know if you have any specific questions!