From: Mattia B. <mb...@ds...> - 2002-11-25 21:51:01
|
On Mon, 25 Nov 2002 16:27:00 +0000 Simon Flack <sf...@fl...> wrote: > I think this might be a subject for [wx-users], but I'm interested in > what's > involved from a perl perspective... > > I'd like to build a custom wx control out of existing controls. > Specifically > I want to cross a Wx::TreeCtrl with a Wx::CheckBox (think: the kind of > control you see see in 'disk backup' applications). Generally, deriving from native widgets (wxButton, wxTreeCtrl (on MSW), wxCheckBox, etc, etc, etc) in order to alter their look and feel is unsupported in wxWindows. > 1. Am I right that I need to use wxUniversal to build these controls? > and > that I cannot use wxUniversal and wxMSW in the same application (yet)? No, and yes. You can emulate it by using checked and unchecked icons for tree items (you can use the same trick with Wx::ListCtrl, BTW). It is correct that you can't currently use wxUniversal widgets with wxMSW. > 2. Is there some perl-ish way of overriding Wx::TreeCtrl to add a > checkbox to > each Wx::TreeItem or do I need to build it in C++ first? See above. > I guess I should also ask, have I overlooked some control/flag that > already > impliments a Check-TreeCtrl? AFAIK, no. HTH Mattia |