PennController for IBEX › Forums › Support › DragDrop features › Reply To: DragDrop features
July 30, 2021 at 11:25 am
#7143
Jeremy
Keymaster
Hi Alex,
Here is a template/demo project featuring the DragDrop element that you might be interested in taking a look at: https://farm.pcibex.net/r/MOytaR/
2. the main purpose of Canvas elements is precisely to control visual layout, in particular when you need to print two elements side by side. Here’s an example, printing two Canvas elements side by side:
newCanvas("container", 400, 200)
.add( 0,0, newCanvas("pink patch", 200,200).color("pink"))
.add( 0,0, newCanvas("blue patch", 200,200).color("blue"))
.print()
3. look at the code of the first trial in the demo project I shared above to see an example
Jeremy