The notebook control itself is a window. If you want to focus to a particular tab, you have to set the tab via
wxNotebook::SetSelection
http://www.wxwidgets.org/manuals/2.4.2/ ... tselection
KA
Search found 65 matches
- Tue Dec 06, 2005 7:07 pm
- Forum: C++ Development
- Topic: How to grab focus?
- Replies: 1
- Views: 678
- Mon Dec 05, 2005 3:33 pm
- Forum: C++ Development
- Topic: Runtime errors for all wx apps
- Replies: 1
- Views: 638
I can't see the screen shot. Maybe post the text of the msg? Anyway, you'll want to make sure you've correctly built the library. If using VC, Match the runtime library settings for both the library and your project. i.e. Use Multithreaded DLL /MD. Also, make sure if you built the library with __WXD...
- Mon Dec 05, 2005 3:27 pm
- Forum: C++ Development
- Topic: Using wxDynamicLibrary on Mac and Linux
- Replies: 2
- Views: 1030
On MAC, dynamic libraries are known as .dylib. Static libs are known as .a I don't know if this is the same on Linux. As far as app design? Using a cross-platform framework is a good first step. You'll discover changes you'll need to make however, once you start building on mulitple platforms. GCC t...
- Mon Dec 05, 2005 1:47 pm
- Forum: C++ Development
- Topic: 2x2 splitter window: how?
- Replies: 8
- Views: 1621
By the way, if you ever intend to run on the MAC, doing a 2x2 splitter with a nested splitter will not give very good results. Problem is each level of nesting shows another border. Since I made a 3x3 splitter with 2 h splitters and 6 v splitters, it looks pretty bad. Going to have to do something e...
- Sun Dec 04, 2005 6:54 pm
- Forum: C++ Development
- Topic: "Donating" some usefull code. Where to?
- Replies: 5
- Views: 1369
post a link here where you put it?
cpp,
Can you add a link to this thread where it's posted? I went to wxcode.sf.net but didn't see where your code might be.
Thanks.
KA
Can you add a link to this thread where it's posted? I went to wxcode.sf.net but didn't see where your code might be.
Thanks.
KA
- Fri Dec 02, 2005 5:09 pm
- Forum: C++ Development
- Topic: Writing Image Handlers
- Replies: 46
- Views: 6685
I'd recommend that and build your code with __WXDEBUG__ defined in the C/C++ Preprocessor. It will give you good info about things that might be wrong. If you're using VC6/.NET2003/2005, it's trivial to include the debug libs in the debug config. They all have a d in their name somewhere, like wxmsw...
- Fri Dec 02, 2005 3:15 pm
- Forum: C++ Development
- Topic: Writing Image Handlers
- Replies: 46
- Views: 6685
What return value do you get? According to the docs, what you're doing looks right. http://www.wxwindows.org/manuals/2.6.2/wx_wxinputstream.html#wxinputstreamseeki Make sure you're not getting wxInvalidOffset. add an assert to make sure what you think is happening is. off_t pos = stream.SeekI(0, wxF...
- Fri Dec 02, 2005 2:55 pm
- Forum: C++ Development
- Topic: wxProgressDialog
- Replies: 4
- Views: 1073
Why not derive from wxProgressDialog and roll your own with the extra progress bar? I'm curious though why you need another bar however. It would seem that given a wide enough bar that as long as the bar advances periodically, the user is alerted that it's in progress. Perhaps ::Update isn't being c...
- Thu Dec 01, 2005 8:19 pm
- Forum: C++ Development
- Topic: Getting multiple ip addresses of a machine...
- Replies: 4
- Views: 1268
- Thu Dec 01, 2005 8:16 pm
- Forum: C++ Development
- Topic: Getting multiple ip addresses of a machine...
- Replies: 4
- Views: 1268
Not much in the way of docs explaining how to use wxIPV4address I did find this via google: http://koders.com/info.aspx?c=ProjectInfo&pid=6QKQNXH38PT55ELXMTNBMWTAMG In particular it's used in root/wxstudio/wxide/parts/debugger/src/process.cpp http://koders.com/kv.aspx?fid=E74BC435BAC423B1624CB3501F3...
- Thu Dec 01, 2005 3:29 pm
- Forum: C++ Development
- Topic: how to add many tooltips to 1 window with multiple rects?
- Replies: 6
- Views: 1794
Thanks, got me looking at the SetToolTip code. You get some assistance for that one :) wxWindowBase::DoSetToolTip does the act of deleting the old tip and assigning the new one. Along the way I found a useful comment: // setting empty tooltip text does not remove the tooltip any more - use // SetToo...
- Wed Nov 30, 2005 5:34 pm
- Forum: Compiler / Linking / IDE Related
- Topic: XRC and MSVC
- Replies: 33
- Views: 6803
- Wed Nov 30, 2005 5:16 pm
- Forum: C++ Development
- Topic: 2x2 splitter window: how?
- Replies: 8
- Views: 1621
Be interested in how you're progressing. I'm looking to make a 3x3 splitter with the top row locked (not sizeable). Nesting splitters can work but I wonder if there's some overwhelming reason why an extended splitter class which can handle more than 1 x 2 or 2 x 1 isn't in order. True there is wxIFM...
- Wed Nov 30, 2005 5:07 pm
- Forum: C++ Development
- Topic: Capture Events In Object
- Replies: 3
- Views: 914
This suggests that the handler needs to be in the frame class: (in the wxToolBar docs) Event handling The toolbar class emits menu commands in the same way that a frame menubar does, so you can use one EVT_MENU macro for both a menu item and a toolbar button The sample app toolbar also does this. KA
- Wed Nov 30, 2005 4:53 pm
- Forum: C++ Development
- Topic: Shared library problem
- Replies: 5
- Views: 1280
Sounds like the src string could be double-byte. atof only works on ANSI strings. You should open the string in question in the memory view of your IDE to verify. It will stop on the first non numerical value it finds including \0 A failure of the function to operate would either be this or else som...