Right aligned toolbar item

Hi there,

I'm trying to have one of my toolbar button right aligned, can't figure
out the way to do so...

I'm not using the toolbar inside a frame; instead, I'm using it as a
title bar of my customized panel. I want it to have a close button right
aligned. The reason of using a toolbar is that I want the buttons to
have toolbar-button-style (borders appear only when the mouse moves on a
button).

So, if there is no way to make a toolbar item right aligned, I'll have
to customize the buttons I want, any idea on this?

Thanks guys

Andy

This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this e-mail in error you must not copy, distribute or take any action in reliance on it. Please notify the sender by e-mail or telephone.
We utilise an anti-virus system and therefore any files sent via e-mail will have been checked for known viruses. You are however advised to run your own virus check before opening any attachments received as we will not in any event accept any liability whatsoever once an e-mail and/or any attachment is received. Any views expressed by an individual within this e-mail do not necessarily reflect the views of Systems Union Group plc or any of its subsidiary companies.

Andy Wu wrote:

Hi there,

I'm trying to have one of my toolbar button right aligned, can't figure
out the way to do so...

It's not possible currently, although it is being attempted right now by one of the OSAF developers. If he is successful then we can probably put it in wxWidgets 2.7.x.

I'm not using the toolbar inside a frame; instead, I'm using it as a
title bar of my customized panel. I want it to have a close button right
aligned. The reason of using a toolbar is that I want the buttons to
have toolbar-button-style (borders appear only when the mouse moves on a
button).

So, if there is no way to make a toolbar item right aligned, I'll have
to customize the buttons I want, any idea on this?

The generic buttons in wx.lib.buttons support a flat look if you give the wx.BORDER_NONE style. They can probably be extended fairly easily to show the bevel on mouse-overs.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!