1. wxEuphoria - picker controls (wxFilePickerCtrl etc)
- Posted by strawman May 25, 2011
- 1621 views
is there any support for the wx classes derived from wxPickerBase (wxFilePickerCtrl, wxDirPickerCtrl, wxColourPickerCtrl etc.), and if not is it planned? i can't find any of these controls in the docs; i can load them from XRC files and they display fine, but i can't figure out whether i can actually make them do anything.
i'm specifically looking to use wxDirPickerCtrl; if this isn't yet supported, is there any way to emulate its functionality?
2. Re: wxEuphoria - picker controls (wxFilePickerCtrl etc)
- Posted by mattlewis (admin) May 25, 2011
- 1623 views
is there any support for the wx classes derived from wxPickerBase (wxFilePickerCtrl, wxDirPickerCtrl, wxColourPickerCtrl etc.), and if not is it planned? i can't find any of these controls in the docs; i can load them from XRC files and they display fine, but i can't figure out whether i can actually make them do anything.
The XRC mechanism is built into wxWidgets, so it bypasses the "normal" create routines inside of wxEuphoria. These look useful and convenient. I guess I just hadn't noticed them before. They look pretty easy to wrap. If you could get the pointer to the underlying text control, you could use them, although right now, without writing new wrappers, you'd have to figure out the offset where the pointer was stored, and do it all manually.
i'm specifically looking to use wxDirPickerCtrl; if this isn't yet supported, is there any way to emulate its functionality?
Yes, you could create a button and a text box yourself, with a wxDirDialog tied in. There is a demo called dialog_demo.exw that uses the dir dialog (it also probably covers the functionality of some of the other pickers). It just puts the data into a static label instead of a text box.
Matt
3. Re: wxEuphoria - picker controls (wxFilePickerCtrl etc)
- Posted by mattlewis (admin) May 25, 2011
- 1552 views
is there any support for the wx classes derived from wxPickerBase (wxFilePickerCtrl, wxDirPickerCtrl, wxColourPickerCtrl etc.), and if not is it planned? i can't find any of these controls in the docs; i can load them from XRC files and they display fine, but i can't figure out whether i can actually make them do anything.
i'm specifically looking to use wxDirPickerCtrl; if this isn't yet supported, is there any way to emulate its functionality?
I've wrapped the picker controls and checked the code into svn, along with a new pickers.exw demo.
Matt