How to create a custom XUI toolbar?

Answered by Ed Benton and Clay Helberg Last Updated: 2006-10-16

Some tips for how to create a toolbar(ish) XUI dialog

=Question by N.N=

I want to create a custom XUI toolbar to display in my open doc. I am successful at making the toolbar display but nothing inside of it will display (button or checkbox). What am I missing?

 <!DOCTYPE window PUBLIC -//Arbortext//DTD XUI XML 1.0//EN xui.dtd>    <?Pub Caret1?>

=Ed L Benton answers=

You need an right after the start tag. In the image group you need tags with id attribute values and path attribute values. Then inside each button you need an image attribute with a value matching the id of one of the tags in your.

=Clay Helberg answers=

If you're using Epic 5.0 or better, there's an easier way to do this. Don't make it an actual toolbar, make it a docked XUI that just looks like a toolbar. The effect is more or less the same, and a lot easier to implement. In fact, it looks like you've already got most of what you need in your sample (viz. the necessary attributes), just remove the and elements and you should be in good shape. Oh, you might also want to add align="horizontal" to the window element to make the layout more toolbar-ish.