Separator in wxToolBar

Well… I runned both in Windows Xp and Windows 2k and the separator happened to be a blank space…!

I’m using wxPython 2.4.2.4 for Python 2.3. I know this is old, but it
is a huge project and there was no time to update the code according to
newer versions… Perhaps this could be the problem. We should be
updating our code to work with newer versions in July.

The idea you had, about creating a button with a line on it… Well, I
did that. And it worked fine for XP. But under 2k, the items on toolbar
looklike buttons. I mean, they have a sort of frame in their area…
Even if they are disabled. So, I can

···

---------- Forwarded message ----------
From: “Gavana, Andrea” gavana@kpo.kz
To: wxPython-users@lists.wxwidgets.org
Date: Mon, 24 Apr 2006 16:03:29 +0100
Subject: RE: [wxPython-users] Separator in wxToolBar

Sorry to break in again, but you can also use a custom bitmap as a separator: just build a vertical line with your favorite image software (like Paint on Windows or whatever is used under GTK), and add it to your toolbar as:

MyToolbar.AddControl(wx.StaticBitmap(MyToolbar, -1, MySeparatorBitmap))

Or something like that :slight_smile:

Andrea.

Well… I runned both in Windows Xp and Windows 2k and the separator happened to be a blank space…!

I’m using wxPython 2.4.2.4 for Python 2.3. I know this is old, but it
is a huge project and there was no time to update the code according to
newer versions… Perhaps this could be the problem. We should be
updating our code to work with newer versions in July.

Regarding the idea you had, about creating a button with a line on it… Well, I
did that. And it worked fine for XP. But under 2k, the items on toolbar
look like buttons. I mean, they have a sort of ‘frame’ in around their area…
Even if they are disabled. So, I can’t keep this solution… it looks like too ugly… =(

···

---------- Forwarded message ----------

From: “Gavana, Andrea” gavana@kpo.kz

To: wxPython-users@lists.wxwidgets.org

Date: Mon, 24 Apr 2006 16:03:29 +0100

Subject: RE: [wxPython-users] Separator in wxToolBar
Sorry to break in again, but you can also use a custom bitmap as a separator: just build a vertical line with your favorite image software (like Paint on Windows or whatever is used under GTK), and add it to your toolbar as:

MyToolbar.AddControl(wx.StaticBitmap(MyToolbar, -1, MySeparatorBitmap))

Or something like that :slight_smile:

Andrea.

Tatiana Al-Chueyr Pereira Martins wrote:

Well... I runned both in Windows Xp and Windows 2k and the separator happened to be a blank space..!

IIRC, using the wx.TB_FLAT style may make a difference.

I'm using wxPython 2.4.2.4 for Python 2.3. I know this is old, but it is a huge project and there was no time to update the code according to newer versions... Perhaps this could be the problem. We should be updating our code to work with newer versions in July.

The idea you had, about creating a button with a line on it... Well, I did that. And it worked fine for XP. But under 2k, the items on toolbar looklike buttons. I mean, they have a sort of frame in their area...

And this will definitely be different if you use the wx.TB_FLAT style. The tools won't have the 3D button appearance, and will look more modern.

···

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