Search found 16 matches
- Wed Aug 29, 2012 10:35 am
- Forum: C++ Development
- Topic: wxWebView setPage render HTML String not work
- Replies: 4
- Views: 2254
Re: wxWebView setPage render HTML String not work
Take the webview sample, find the method WebFrame::OnUrl(): When i change this line: m_browser->LoadURL( m_url->GetValue() ); To this: m_browser->SetPage("<html><title>Title</title><body>TextXXX</body></html>", ""); It works for me (just type anything in the url control to trigg...
- Wed Aug 29, 2012 3:45 am
- Forum: C++ Development
- Topic: wxWebView setPage render HTML String not work
- Replies: 4
- Views: 2254
Re: wxWebView setPage render HTML String not work
I try another way: change code to this: wxWebView * html = wxWebView::New(bgpanel, wxID_ANY, "",wxPoint(5,5), wxSize(100,200)); wxFileSystem::AddHandler(new wxMemoryFSHandler()); wxMemoryFSHandler::AddFile("data.html", "<html><body><h1>Hello,World</h1></body></html>"); ...
- Tue Aug 28, 2012 8:24 am
- Forum: C++ Development
- Topic: wxWebView setPage render HTML String not work
- Replies: 4
- Views: 2254
wxWebView setPage render HTML String not work
hi: I am in Window xp sp3 and with mingw TDM gcc 4.5.2 and codeblock and wxWidgets 2.9.4 sample code like this: wxWebView * html = wxWebView::New(bgpanel, wxID_ANY, "",wxPoint(5,5), wxSize(100,200)); html->SetPage("<html><title>Title</title><body>Text</body></html>", ""...
- Thu Oct 15, 2009 2:35 am
- Forum: C++ Development
- Topic: continue create dialog wizard cause unkonwn exception
- Replies: 3
- Views: 1088
- Wed Oct 14, 2009 3:22 am
- Forum: C++ Development
- Topic: continue create dialog wizard cause unkonwn exception
- Replies: 3
- Views: 1088
continue create dialog wizard cause unkonwn exception
Just a dialog wizard follow,one by one ,let user select some option. but final cause unknown exception. what cause exception? thanks. I am use window xp IDE codeblocks 8.02 and wxwidgets 2.8.10 msw the code piece as follow: void test() { wxDialog dlg; dlg.Create(NULL, wxNewId(), _T("Step 1"...
- Tue Aug 25, 2009 11:54 pm
- Forum: wxWidgets Development (Chinese)
- Topic: wxWidgets 2.9 发布了,进来下载吧
- Replies: 14
- Views: 11240
- Tue Aug 25, 2009 11:44 pm
- Forum: C++ Development
- Topic: how to get wxGrid focus cell in custom GridCellRenderer?
- Replies: 2
- Views: 1125
Re: how to get wxGrid focus cell in custom GridCellRenderer?
hi,tan: because I am Familiar java Swing JTable,I want do some special draw effect when the grid view render time. for this ,I need get current rederering cell's distance from focus cell and then do someting . the isSelected just when focus cell be renderering time is true. this not I want. yesterda...
- Tue Aug 25, 2009 12:17 pm
- Forum: C++ Development
- Topic: how to get wxGrid focus cell in custom GridCellRenderer?
- Replies: 2
- Views: 1125
how to get wxGrid focus cell in custom GridCellRenderer?
defined a custom cell render from derive wxGridCellRenderer class. on overide Draw method: I want get current grid focus cell Row and Col coordinate but the grid GetSelectedCells,GetSelectedRows get Array count is zero. when use keyboard arrow up,down,left or right to move the indicator rect on grid...
- Wed Aug 12, 2009 7:30 am
- Forum: wxWidgets Development (Chinese)
- Topic: 无法找到wxmsw28ud_core_gcc_custom.dll的问题
- Replies: 3
- Views: 3330
Re: 无法找到wxmsw28ud_core_gcc_custom.dll的问题
开发环境是eclipse + cdt + minGW + wxWidgets 2.8.10 wxWidgets我是编译成uncode+debug+动态库,在eclipse中也做了相应的库文件的引用,在eclipse中运行项目的时候,编译通过了,但是没有窗口出来,后来我到项目的debug下面点击test.exe的时候弹出了 “没有找到wxmsw28ud_core_gcc_custom.dll,因此这个应用程序未能启动。重新安装应用程序可能会修复此问题” 我也重新编译了一次wxWidgets,但是还是同样的问题 ,我检查了在wxWidgets的lib/gcc_dll目录有这个dll,而且在ecl...
- Tue Aug 04, 2009 7:21 am
- Forum: C++ Development
- Topic: Strange undefined reference to wxXmlResource
- Replies: 3
- Views: 1726
- Sat Jul 25, 2009 3:57 am
- Forum: C++ Development
- Topic: what's wrong with wxFile,can't close file descriptor 3
- Replies: 3
- Views: 1503
I find the Cause! CodeBlocks generate compiler has some wrong .(I have not find why). I use wxwidgets samples complier command . g++ -c testFMain.cpp -o obj\testFMain.o -O2 -mthreads -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -IG:\wxWidgets-2.8.10\lib\gcc_lib\mswu -IG:\wxWidgets-2.8.10\include -W -Wall ...
- Fri Jul 24, 2009 1:53 pm
- Forum: C++ Development
- Topic: what's wrong with wxFile,can't close file descriptor 3
- Replies: 3
- Views: 1503
use wxFile::IsOpened to check if the file was properly openened. You don't always have write access to your own application directory. use wxStandardPaths to find a proper place for your configuration file. http://docs.wxwidgets.org/stable/wx_wxstandardpaths.html#wxstandardpaths if(t.IsOpened()) { ...
- Fri Jul 24, 2009 9:00 am
- Forum: C++ Development
- Topic: what's wrong with wxFile,can't close file descriptor 3
- Replies: 3
- Views: 1503
what's wrong with wxFile,can't close file descriptor 3
just simple wxForm program with unicode enable wxwidgets 2.8.10 #include <wx/msgdlg.h> #include <wx/file.h> on app.cpp has follow code: IMPLEMENT_APP(testFApp); bool testFApp::OnInit() { wxString fileName =_("config.ini"); wxFile t(fileName,wxFile::write); // if(wxFile::Exists(fileName)) /...
- Thu Jul 09, 2009 1:55 am
- Forum: C++ Development
- Topic: Strange undefined reference to wxXmlResource
- Replies: 3
- Views: 1726
- Tue Jul 07, 2009 5:29 am
- Forum: C++ Development
- Topic: Strange undefined reference to wxXmlResource
- Replies: 3
- Views: 1726
Strange undefined reference to wxXmlResource
Hi All: I am using code;:block 8.0.2 and wxwidget 2.8.10 and mingw (gcc version 3.4.5 (mingw-vista special r3)) use new wxWidgets Project Wizard to create a new project ,using unicode mode. the wxWidgets 2.8.10 has use UNICODE=1 and USE_GUI=1 build lib with BUILD=release and BUILD=debug to generate ...