Search found 317 matches
- Tue May 30, 2006 6:33 pm
- Forum: C++ Development
- Topic: wxFileHistory
- Replies: 2
- Views: 1165
See the note below UseMenu . You need to call AddFilesToMenu(mnu) only once, right after UseMenu(mnu) -- it is used to populate the menu with files that were put into history before the menu was attached. As for the path not being full... I scanned the source (src/common/docview.cpp) and found that ...
- Tue May 30, 2006 6:02 pm
- Forum: C++ Development
- Topic: Images/Controls + Text Boxes - transparent background colour
- Replies: 9
- Views: 2224
Anyone please correct me if I'm wrong, but I don't think there is a way one could make wxStaticBitmap honour alpha channel (at least not a portable one). I have found a kind of solution that draws the text labels onto the background in the onPaint method and this works, however, I cant do the same t...
- Wed May 24, 2006 7:50 am
- Forum: C++ Development
- Topic: wxPanel as a part of wxSplitter
- Replies: 1
- Views: 857
I think the problem is not with your custom control itself, it really is in the splitter. But in OBDirCtrl ctor, you're creating a wxGenericDirCtrl as a child of the OBDirCtrl's parent, that is at the same level of widget hierarchy as the wxSplitterWindow is. So what you see in the top-left corner i...
- Tue May 23, 2006 8:41 am
- Forum: C++ Development
- Topic: Overwrite wxGenericTreeCtrl::PaintLevel
- Replies: 4
- Views: 1027
The definition of the array can be found early in treectlg.cpp, just copy it. class WXDLLEXPORT wxGenericTreeItem; WX_DEFINE_EXPORTED_ARRAY_PTR(wxGenericTreeItem *, wxArrayGenericTreeItems); Then I think you'll have to take the whole definition of wxGenericTreeItem class from treectlg.cpp -- you abs...
- Tue May 23, 2006 4:36 am
- Forum: wxDev-C++
- Topic: Refer to parent object
- Replies: 8
- Views: 2226
...unfortunately the GetParent() method returns a wxWindow* and this is not able to convert into a Dlg1* (compiler message) Noone (not even the compiler) should be able to stop you from converting a thing to anything else :P I guess your Dlg1 is a descendant of wxDialog, isn't it? Unlike conversion...
- Mon May 22, 2006 12:26 pm
- Forum: C++ Development
- Topic: append a file to an existing zip archive
- Replies: 6
- Views: 2562
I'm truly sorry :roll: I haven't tested the code I posted. The can't remove file error was caused by the original archive being still open when we tried to replace it with the new one. After realizing this, I was kind of shocked wxFFileInputStream doesn't have a Close() method. Here's a piece of cod...
- Sun May 21, 2006 11:23 pm
- Forum: C++ Development
- Topic: Another Focus/Event handling problem
- Replies: 2
- Views: 1142
Re: Another Focus/Event handling problem
Is there a way for me to make this work other than having to subclass each child control/window that I dump into the frame and add event handling to each of these controls/windows? Sure. You can connect the frame's handler to the controls. You'll still have to do it for each control, but it's a sin...
- Sun May 21, 2006 3:14 pm
- Forum: C++ Development
- Topic: Detecting whether the scrollbar is at the bottom or not?
- Replies: 1
- Views: 612
What about this?
Does it work? The methods are virtual in wxWindow, and I believe wxTextCtrl implements them.
Code: Select all
if (win->GetScrollPos(wxVERTICAL)+1 >= win->GetScrollRange(wxVERTICAL))
... // we're at the bottom
- Sat May 20, 2006 1:09 pm
- Forum: C++ Development
- Topic: Handling clipboard
- Replies: 9
- Views: 2843
- Sat May 20, 2006 9:22 am
- Forum: C++ Development
- Topic: Handling clipboard
- Replies: 9
- Views: 2843
Search this forum for "MSWWindowProc(WXUINT", you'll find a few posts explaining how to handle Windows messages that are not being translated to wxWidgets events. Most of the results are more or less identical copies of this one.
- Fri May 19, 2006 3:06 pm
- Forum: C++ Development
- Topic: how to get a menu's title from xml
- Replies: 5
- Views: 1115
- Thu May 18, 2006 9:20 pm
- Forum: C++ Development
- Topic: wxTreeCtrl not expanded in double click
- Replies: 2
- Views: 886
- Thu May 18, 2006 8:47 am
- Forum: C++ Development
- Topic: How to get a Combo Box message
- Replies: 11
- Views: 2788
Re: How to get a Combo Box message
Creating custom event types is described in the docs . // in a header where your custom combobox is defined DECLARE_EVENT_TYPE(myEVT_NEED_REFRESH, -1) // in mycombo.cpp DEFINE_EVENT_TYPE(myEVT_NEED_REFRESH) // in the receiving window, you handle it like a wxCommandEvent EVT_COMMAND(myID_COMBO, myEVT...
- Thu May 18, 2006 7:19 am
- Forum: C++ Development
- Topic: GetNextLine()
- Replies: 4
- Views: 1386
- Thu May 18, 2006 12:57 am
- Forum: C++ Development
- Topic: XRC Resource from a wxString not a File
- Replies: 4
- Views: 1582
Sure, with the help of wxMemoryFSHandler. You'll have to convert the string into utf-8 (or whatever the value of encoding in the ?xml is) and then add the data to the VFS (virtual file system): // in MyApp::OnInit(), introduce the MemFS to the VFS wxFileSystem::AddHandler(new wxMemoryFSHandler()); /...