From: Bernd H. <ber...@ic...> - 2008-11-18 07:49:50
|
Hi all, I noticed there are several functions in wxWidgets that are not mapped to wxHaskell (0.10.3). I need, e.g., notebookHitTest, textCtrlBeginSuppressUndo and textCtrlEndSuppressUndo. To the wxHaskell developers: can I hope to see these functions in the next version? Or is there an easy way to make these functions available in my application right now? Thanks, Bernd |
From: shelarcy <she...@gm...> - 2008-11-28 03:51:31
|
Hi, I'm sorry about my reply is late. I was busy current two weeks. On Tue, 18 Nov 2008 16:49:43 +0900, Bernd Holzmüller <ber...@ic...> wrote: > I noticed there are several functions in wxWidgets that are not mapped > to wxHaskell (0.10.3). I need, e.g., notebookHitTest, > textCtrlBeginSuppressUndo and textCtrlEndSuppressUndo. > > To the wxHaskell developers: can I hope to see these functions in the > next version? Please show your important functions list. If we can add them easily, we'll add them before 0.11 release. But some functions are not easy to support. I think BeginSuppressUndo and EndSuppressUndo are wxRichTextBuffer class functions. wxHaskell doesn't support support wxRichTextCtrl and wxRichTextBuffer currently, so we can't support soonly. http://docs.wxwidgets.org/stable/wx_wxrichtextbuffer.html#wxrichtextbufferbeginsuppressundo I planed to add some classes support after 0.11 release, so please wait next next version. > Or is there an easy way to make these functions available in my > application right now? If you're using unix platform, you can add these function easily. See this thead. http://www.mail-archive.com/wxh...@li.../msg00450.html But I think you're using Windows platform, so you can't add functions easily. If you want to make patches for soving your problem, please see my fixed version of above thead's functions. http://www.mail-archive.com/wxh...@li.../msg00304.html http://www.mail-archive.com/wxh...@li.../msg00322.html Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: shelarcy <she...@gm...> - 2008-12-13 01:10:20
|
Hi, On Sun, 30 Nov 2008 01:54:53 +0900, Bernd Holzmüller <ber...@ic...> wrote: > The function I would like to be added most is wxNotebook::HitTest, because > otherwise I have no chance of knowing whether the user is over a specific tab. > This is a precondition for displaying tab specific information (like file path) > when the user is over a tab. I added notebookHitTest function and its flags, now. http://www.mail-archive.com/wxh...@li.../msg00356.html But this is just thin wrapper. Because there is no higher-level interface for *HitTest functions in wxHaskell now. I don't know what is the good design. > The other functions are wxRichTextCtrl::BeginSuppressUndo and wxRichTextCtrl::EndSuppressUndo. > >> But some functions are not easy to support. I think BeginSuppressUndo >> and EndSuppressUndo are wxRichTextBuffer class functions. wxHaskell doesn't >> support support wxRichTextCtrl and wxRichTextBuffer currently, so we can't >> support soonly. > > I currently use wxRichtTextCtrl (calling function textCtrlRich) in my current > application (to display colored text), so what do you mean with "wxHaskell doesn't > support wxRichTextCtrl currently"? Yes. textCtrlRich is not wxRichtTextCtrl now. This is just wrapper function of creating wxTextCtrl class. So, wxHaskell doesn't support wxRichTextCtrl yet. textCtrlRich :: Window a -> [Prop (TextCtrl ())] -> IO (TextCtrl ()) textCtrlRich parent props = textCtrlEx parent (wxTE_MULTILINE .+. wxTE_RICH2) props Best Regards, > However, if these functions are difficult to implement, it is not *that* important. > > http://docs.wxwidgets.org/stable/wx_wxrichtextbuffer.html#wxrichtextbufferbeginsuppressundo > >> I planed to add some classes support after 0.11 release, so please wait >> next next version. > > I am looking forward to it! I would love to have wxHaskell to support more > functionality because I do implement quite a few things with wxHaskell in the > mean time. > > > > Or is there an easy way to make these functions available in my > application right now? > >> If you're using unix platform, you can add these function easily. See this thead. >> >> http://www.mail-archive.com/wxh...@li.../msg00450.html >> >> But I think you're using Windows platform, so you can't add functions easily. > > You are right. I work on Windows most of the time. (But I chose wxHaskell to > have applications work on both Windows and Linux). > > Many Thanks for your help! > > Best regards, > Bernd > > P.S. I still had process termination problems after my last mail (the wxProcess > topic). I solved it by using runInteractiveProcess instead of > runInteractiveCommand in Mads' solution. -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |