Search found 61 matches
- Sat Dec 01, 2007 2:31 pm
- Forum: C++ Development
- Topic: wxScrolledWindow repainting question
- Replies: 2
- Views: 1288
- Sat Dec 01, 2007 1:58 pm
- Forum: C++ Development
- Topic: Text on wxGLCanvas flash
- Replies: 5
- Views: 2582
I believe you cannot mix OpenGL and DC rendering on the same pane. But you can place wxStaticText control somewhere on wxGLCanvas and use it to show what you want. This obviously isn't the right way when you need to move text according to your view transformation (like labels for axis in 3d graph) ...
- Wed Oct 17, 2007 6:56 pm
- Forum: C++ Development
- Topic: OpenGL DIB Section Offscreen Rendering
- Replies: 5
- Views: 2718
- Wed Oct 17, 2007 2:07 pm
- Forum: C++ Development
- Topic: filling a circle with an image
- Replies: 1
- Views: 902
- Tue Oct 09, 2007 12:13 pm
- Forum: Compiler / Linking / IDE Related
- Topic: OpenGl OnSize event trouble
- Replies: 1
- Views: 1381
- Mon Oct 08, 2007 8:57 am
- Forum: Open Discussion
- Topic: Heap and two-dim array with std:.vector
- Replies: 1
- Views: 1665
1) Incorrect. If you create instance of the C class by calling operator new, you get the class and all its data allocated on the heap. This is the right way. Also your constructor body has weird syntax, data initialization can't be done this way. 2) See your second post 3) every new has its delete.....
- Mon Oct 08, 2007 8:47 am
- Forum: Open Discussion
- Topic: Heap allocation of vector<T>
- Replies: 3
- Views: 1858
Code: Select all
typedef std::vector<std::vector<int> > matrix_t;
matrix_t* m = new matrix_t(5);
for (size_t i = 0; i < m->size(); i++)
m->resize(5);
- Tue Sep 25, 2007 2:55 pm
- Forum: C++ Development
- Topic: How to get a list of network interfaces and their IPs?
- Replies: 6
- Views: 2884
- Tue Sep 25, 2007 2:26 pm
- Forum: C++ Development
- Topic: wxWidgets and OpenGL full screen antialiasing (extensions)
- Replies: 11
- Views: 3840
Well I didn't used this specific extension but I recently also ran into some problems with GL under wx. My problem was that glEnable and some other functions didn't work when called from the GLCanvas constructor (maybe because SetCurrent didn't work, I didn't investigate it further). I don't know if...
- Wed Sep 12, 2007 11:21 pm
- Forum: C++ Development
- Topic: wxWidgets and OpenGL full screen antialiasing (extensions)
- Replies: 11
- Views: 3840
I have used GLEW with wxWidgets with no problems. You are right, that Set/GetPixelFormat functions are platform dependant (they are from Windows API). But you don't _need_ to use them. Simply derive your your canvas-like class from wxGLCanvas and let wxWidgets do it for you portably. Sometime after ...
- Tue Feb 28, 2006 6:07 pm
- Forum: C++ Development
- Topic: wxFileConfig and location of INI files
- Replies: 1
- Views: 1338
Create wxFileConfig like this:
Code: Select all
new wxFileConfig(wxEmptyString, wxEmptyString, full_path_to_your_config)
- Sat Feb 25, 2006 4:05 pm
- Forum: C++ Development
- Topic: SetLabel and AddCheckTool
- Replies: 9
- Views: 2696
- Sat Feb 25, 2006 3:52 pm
- Forum: Announcements and Discoveries
- Topic: wxIFM Patches
- Replies: 5
- Views: 3052
The for cycle in file definterface.cpp on line 275 (in function GetContainer) should be reversed. Change from: for( wxIFMComponentList::const_iterator i = m_containers.begin(), end = m_containers.end(); i != end; ++i ) to for( wxIFMComponentList::const_reverse_iterator i = m_containers.rbegin(), end...
- Fri Feb 24, 2006 12:13 pm
- Forum: C++ Development
- Topic: SetLabel and AddCheckTool
- Replies: 9
- Views: 2696
I use this for setting the label and it works for me:
Code: Select all
wxToolBarToolBase *tool;
tool = ToolBar->FindById(XRCID("ID_SOMEID"));
tool->SetLabel("new label");
- Thu Feb 09, 2006 11:59 am
- Forum: Compiler / Linking / IDE Related
- Topic: How do you use contrib library ?
- Replies: 6
- Views: 2299