Search found 64 matches

by chenbin.sh
Mon Apr 14, 2014 11:37 pm
Forum: C++ Development
Topic: how to implement place holder for wxTextCtrl
Replies: 2
Views: 3857

Re: how to implement place holder for wxTextCtrl

Thanks, late I found there is an API SetHint() for wxTextCtrl.
by chenbin.sh
Mon Apr 14, 2014 2:04 am
Forum: C++ Development
Topic: how to implement place holder for wxTextCtrl
Replies: 2
Views: 3857

how to implement place holder for wxTextCtrl

https://dl.dropboxusercontent.com/u/858 ... 17x151.png

I want to place the hint in the background of wxTextCtrl.
by chenbin.sh
Sun Apr 13, 2014 3:37 am
Forum: C++ Development
Topic: change the text color in wxDataViewListCtrl
Replies: 2
Views: 2901

Re: change the text color in wxDataViewListCtrl

Thanks, I think it's because I'm using wxDataViewCustomRenderer:RenderText() on gtk+, for some reason, the text color is hardcoded in that function.

I just use wxDC->DrawLabel instead and it works as expected.
by chenbin.sh
Sat Apr 12, 2014 7:40 am
Forum: C++ Development
Topic: change the text color in wxDataViewListCtrl
Replies: 2
Views: 2901

change the text color in wxDataViewListCtrl

https://dl.dropboxusercontent.com/u/858 ... 91x436.png


See the button text "Open" is in black color, how can I change it to white?
by chenbin.sh
Thu Apr 10, 2014 1:31 pm
Forum: C++ Development
Topic: how to embed button in wxDataViewListCtrl?
Replies: 1
Views: 2422

how to embed button in wxDataViewListCtrl?

could somebody show me the sample code? UPDATE 1: I find some workaround, it's kind of dirty. if you check the wxDataViewListCtrl documentation, you will find that it cannot detect mouse left button down event, especially for GTK. So I just do everything in the custom button render #include <wx/data...
by chenbin.sh
Sat Feb 15, 2014 7:46 am
Forum: Announcements and Discoveries
Topic: wxwidgets-help 0.0.4 (Emacs plugin)
Replies: 0
Views: 1941

wxwidgets-help 0.0.4 (Emacs plugin)

wxwidgets-help 0.0.4
https://github.com/redguardtoo/wxwidgets-help
Look up wxWidgets API in its html manual which is produced by doxygen

CHANGELOG:
bugs fixed and code cleaned
by chenbin.sh
Thu Dec 20, 2012 1:26 pm
Forum: C++ Development
Topic: "memory:about.html" failed to load "default.css"
Replies: 2
Views: 2001

"memory:about.html" failed to load "default.css"

Both files are in memory and I'm using wxWebView to load about.html. The problem is default.css won't be loaded unless I specify the "memory:" prefix. for exmaple, "<link href='memory:default.css">". Any way to avoid insert "memory:"? All my html/css files will be ...
by chenbin.sh
Wed Dec 19, 2012 12:47 pm
Forum: C++ Development
Topic: memory FS is not supported by wxWebView (2.9.4)?
Replies: 1
Views: 2132

Re: memory FS is not supported by wxWebView (2.9.4)?

To answer my own question, I just use the HEAD from github.
It's far from stable. To make it compile on OS X 10.7.3. I have to "./configure --without-libtiff" because some files are missing.
by chenbin.sh
Wed Dec 19, 2012 10:16 am
Forum: C++ Development
Topic: memory FS is not supported by wxWebView (2.9.4)?
Replies: 1
Views: 2132

memory FS is not supported by wxWebView (2.9.4)?

See http://docs.wxwidgets.org/trunk/classwx_memory_f_s_handler.html and http://trac.wxwidgets.org/ticket/14623 I grep the source and found no word "wxWebViewFSHandler" Am I right? If 2.9.4 does not support, then what version support it? Should I use svn version? what version on svn is stab...
by chenbin.sh
Wed Dec 19, 2012 6:57 am
Forum: C++ Development
Topic: display html5 page in the application
Replies: 4
Views: 4423

Re: display html5 page in the application

Thanks for everyone. Now it's pretty clear. I will use wxWebView.
by chenbin.sh
Mon Dec 17, 2012 12:06 pm
Forum: Compiler / Linking / IDE Related
Topic: Emacs is a perfect IDE for wxWidgets
Replies: 0
Views: 1658

Emacs is a perfect IDE for wxWidgets

I use Emacs for wxWidgets on Linux/Mac. I think the only issue of Emacs is the support of API documentation looking up.

So here is my project wxwidgets-help: https://github.com/redguardtoo/wxwidgets-help

Almost no setup. install the package and set up the hot key in one line of elisp and enjoy!
by chenbin.sh
Sun Dec 09, 2012 11:37 am
Forum: C++ Development
Topic: display html5 page in the application
Replies: 4
Views: 4423

display html5 page in the application

I want to display html5 page using twitter-bootstrap in my application. The html page should be stored in memory because I want to update the html rendering frequently. It's kind of like some interactive html design page, when user tweak something in the control panel, he/she will get the visual fee...
by chenbin.sh
Thu Nov 15, 2012 12:56 pm
Forum: The Code Dump
Topic: new-wxproj, a bash script to create a minimum C++ project
Replies: 0
Views: 4232

new-wxproj, a bash script to create a minimum C++ project

* key points
- create cmake project files. CMake will create IDE project files or GNU Makefiles based on its own project files.
- minimum main frame application with menu bar.
- The executable on OS X is packaged in a bundle automatically

See https://github.com/redguardtoo/new-wxproj for the code.