Hello NGs,
after some nice suggestions from E. A. Tacao (thanks Tacao!), I have made some updates to FoldPanelBar and HyperLinkCtrl. Noting that they are included in the wxPython lib, I post this message also on wxPython-dev.
Starting from HyperLinkCtrl, Tacao sent me a patch that solve some Refresh() weird behavior (related to continuous font and text colour changes/refreshes) and also a small update to the demo. I attach 2 patches for HyperLinkCtrl, one for the widget and one for the demo.
Regarding FoldPanelBar, Tacao was finally able to convince me to implement the FBP_SINGLE_FOLD and FPB_EXCLUSIVE_FOLD options, that I had left undone. They are not implemented in the C++ implementation from Jorgen Bodde. Basically, these 2 styles do the following things:
-
FPB_SINGLE_FOLD: forces other panels to close when they are open, and only opens the current panel. This will allow the open panel to gain the full size left in the client area
-
FPB_EXCLUSIVE_FOLD: forces other panels to close when they are open and stack them to the bottom (this is a union between FPB_SINGLE_FOLD and FPB_COLLAPSE_TO_BOTTOM), and only opens the current panel
Moreover, there also is a cosmetic enhancement to FoldPanelBar: When the mouse enters the captionbar icon region, the mouse pointer is changed to wx.CURSOR_HAND, and it is restored to wx.CURSOR_ARROW when the mouse leaves that region. I have also updated the demo (Extended), in order to show the new functionalities. I attach 2 patches for FoldPanelBar, one for the widget and one for the demo.
For the wxPython-dev: Kevin, will it be possible to update the controls classes/demos in a future release of wxPython?
Please note that the updated implementations with their demos may also be downloaded from my site:
http://xoomer.virgilio.it/infinity77/eng/freeware.html#foldpanelbar
http://xoomer.virgilio.it/infinity77/eng/freeware.html#hyperlinkctrl
Or, if you prefer in italian :
http://xoomer.virgilio.it/infinity77/ita/freeware.html#foldpanelbar
http://xoomer.virgilio.it/infinity77/ita/freeware.html#hyperlinkctrl
If anyone is interested in the updated implementations and he/she will try the demos, could he/she please let me know if everything works as expected or if there are some bugs/issues/possible improvements?
Thanks for every comments/ideas.
Andrea.
“Imagination Is The Only Weapon In The War Against Reality.”
http://xoomer.virgilio.it/infinity77
foldpanelbar.py.patch (6.16 KB)
foldpanelbardemo.py.patch (4.22 KB)
hyperlink.py.patch (2.55 KB)
hyperlinkdemo.py.patch (660 Bytes)