Hi. I can’t find anything in the docs about creating custom controls in the GUI, is this possible? Can I inherit from Control and if so what are the appropriate hooks for drawing the control etc?
My use case is that I have a third party library that is generating a canvas (enclosed in a few other divs) which I want to embed in the GUI (in the ADT I have a grid control and the contents of the canvas need to go into one of the grid cells). Using an Image control I can inject the content into the domImage but then I don’t know what to do with it. That’s why I thought a custom control might be the go but cant see anything for it.
Related to this is that I can go a getContext() on the ADT to get the canvas context for the ADT to draw on it directly but I don’t see anything like that exposed on the controls, ie a getContext or getRect or something to return the portion of the ADT that the control will draw on. Is that possible or too hard/dependent on other layout concerns?