FlatNotebook Dropdown arrow

I noticed in the demo Flatnotebook blanks
the dropdown arrow out with black when the X button is removed. To
reproduce (Python 2.4, WxPython 2.8.4, Win XP),

Open Flatnotebook in the Demo

Make a couple tabs (Ctrl-N)

Click Edit/Use Dropdown Button…

Click Edit/Hide X Button

Click Tab Appearance/Tab Style/Use Fancy Style

Though it still works, The arrow area turns into a black box.

I like Flatnotebook and the new dropdown arrow with Fancy Tabs. Is
there a way around this. It also happens with other tab styles.

Thanks,

Tim

Morton Publications wrote:

I noticed in the demo Flatnotebook blanks the dropdown arrow out with black when the X button is removed. To reproduce (Python 2.4, WxPython 2.8.4, Win XP),

Open Flatnotebook in the Demo
Make a couple tabs (Ctrl-N)
Click Edit/Use Dropdown Button...
Click Edit/Hide X Button
Click Tab Appearance/Tab Style/Use Fancy Style

Though it still works, The arrow area turns into a black box.

I like Flatnotebook and the new dropdown arrow with Fancy Tabs. Is there a way around this. It also happens with other tab styles.

Well, tracking down the cause of the bug, fixing it (and sending a patch) would certainly be one way to work around it. :wink: It's all Python code so it shouldn't be too difficult.

···

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

Hi Tim,

Morton Publications wrote:
> I noticed in the demo Flatnotebook blanks the dropdown arrow out with
> black when the X button is removed. To reproduce (Python 2.4, WxPython
> 2.8.4, Win XP),
>
> Open Flatnotebook in the Demo
> Make a couple tabs (Ctrl-N)
> Click Edit/Use Dropdown Button...
> Click Edit/Hide X Button
> Click Tab Appearance/Tab Style/Use Fancy Style
>
> Though it still works, The arrow area turns into a black box.
>
> I like Flatnotebook and the new dropdown arrow with Fancy Tabs. Is there
> a way around this. It also happens with other tab styles.

Well, tracking down the cause of the bug, fixing it (and sending a
patch) would certainly be one way to work around it. :wink: It's all
Python code so it shouldn't be too difficult.

The following change on line 1462 of flatnotebook.py fixes this bug:
please try to change this:

dc.DrawBitmap(self._xBgBmp, posx, 6)

Into this:

dc.DrawBitmap(self._rightBgBmp, posx, 6)

And hopefully it should be fixed... could you please let me know if it works?

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/

···

On 6/11/07, Robin Dunn wrote:

Thanks Andrea, that fixed the problem.

Thanks also for providing such good components for WxPython.

If I may I will suggest that a future version allow one to select a tab
from the drop down menu with a single click action. That is, the down
click opens the menu allowing the user to move the cursor over the
selection and open it with the up click.

Tim

Andrea Gavana wrote:

···

http://xoomer.virgilio.it/infinity77/

wxPython-users-unsubscribe@lists.wxwidgets.org
wxPython-users-help@lists.wxwidgets.org