View Full Version : Using custom classes
31 Jan 2012, 12:31 PM
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?
31 Jan 2012, 1:49 PM
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.
1 Feb 2012, 4:44 AM
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.
1 Feb 2012, 7:56 AM
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.
24 Feb 2013, 2:08 AM
I reckon I have something similar going on, thread below:
Powered by vBulletin® Version 4.1.5 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.