Using custom classes
I have a toolbar with a text field and two buttons that I’ve made into a class in Designer. I’d like to use this class throughout my project. How does one reuse a class?
If the toolbar is already a top level class you just need to drag that toolbar into the component you want to use it in.
You will then be prompted with a link, copy and move dialog. You will want to choose link.
If your toolbar is not yet a top level class, you can right click on it and choose promote to class. You can then link that toolbar to as many other places you would like.
Thanks for the reply. That’s exactly what I was trying to do, I created a toolbar in a grid, promoted it to a class and dragged the promoted class into another grid. However, when I looked in the generated code, I noticed the toolbar was added as an item instead of a docked item, a docked toolbar was my intent. I ended up starting over, creating the toolbar in a grid, promoting the toolbar and dragging the original toolbar into my other grids. That seemed to reuse the custom toolbar class.
I'm not sure of the original workflow you used and whether or not there was a bug there.
If you are able to reproduce something that you think is acting improperly, please let us know.
I reckon I have something similar going on, thread below: