Search found 198 matches
- Tue Aug 07, 2012 5:55 pm
- Forum: C++ Development
- Topic: Is there a scrollable wxPanel?
- Replies: 2
- Views: 1161
Is there a scrollable wxPanel?
I have a panel with a sizer and a whole column of buttons. I want the panel to become scrollable, rather than partially disappearing, when the window is resized (made smaller). What's the easiest way to achieve this? I tried adding the scroll bit to the panel which creates the vertical scrollbar but...
- Tue Jun 19, 2012 6:48 am
- Forum: Platform Related Issues
- Topic: Open file explorer (!) cause my app to refresh and screw up.
- Replies: 1
- Views: 2237
Open file explorer (!) cause my app to refresh and screw up.
Yes, as weird as this sounds. When I open file explorer on Windows 7 (clicking My Computer on the start menu), my wxwidgets app windows get refreshed (flickers momentarily) and 1 of them doesn't even paint it's background (wxPanels)correctly on this particular refresh even and leaves it looking terr...
- Fri Jun 15, 2012 9:23 pm
- Forum: C++ Development
- Topic: After expanding wxtreectrl, how do I scroll it up to top?
- Replies: 0
- Views: 693
After expanding wxtreectrl, how do I scroll it up to top?
I traverse the tree and expand the node. This makes the control scroll down to the bottom of the tree. I want to move it back to the top. I tried ScrollTo(m_root_id) but that doesn't do it. How do I go about this?
- Thu Jun 07, 2012 2:13 am
- Forum: C++ Development
- Topic: Commercial controls for wxWidgets. Exists?
- Replies: 2
- Views: 1028
Re: Commercial controls for wxWidgets. Exists?
Nice one! Any more? Seriously, anything to beautiful it is cool. I know there was an extensive library with preference window and such. But I can't find it via google. Probably went belly up.
- Tue Jun 05, 2012 2:39 am
- Forum: C++ Development
- Topic: Is there a wxRegion::Intersects() or some way of doing it?
- Replies: 3
- Views: 1053
Re: Is there a wxRegion::Intersects() or some way of doing i
That function creates a region that intersects both (or something). It doesn't actually tell you if region and rect intersect.PB wrote:wxRegion::Intersect(wxRect&) appears to be there in in wxWidgets 2.8 and wxWidgets 2.9?
- Tue Jun 05, 2012 1:57 am
- Forum: C++ Development
- Topic: Commercial controls for wxWidgets. Exists?
- Replies: 2
- Views: 1028
Commercial controls for wxWidgets. Exists?
I remember years ago someone posted screenshots of their widget library for wxWidgets. It had a bunch of stuff and it looked really nice (like office if I remember). Is that guy/company still around? Are there commercial custom widgets? These stock ones are getting bland.. I'd love move eye candy! 

- Mon Jun 04, 2012 12:40 am
- Forum: C++ Development
- Topic: Is there a wxRegion::Intersects() or some way of doing it?
- Replies: 3
- Views: 1053
Is there a wxRegion::Intersects() or some way of doing it?
I need to know if a region intersects a rectangle. There doesn't seem to be an intersects() function in wxRegion. I can do wxRegion().GetBox() but a box isn't fine grained enough. Anyone know how to know if a wxRect intersects a wxRegion?
- Thu May 31, 2012 9:08 am
- Forum: C++ Development
- Topic: Need a better way to work with XRC
- Replies: 0
- Views: 634
Need a better way to work with XRC
Ok, so using wxFormBuilder I layout my dialog windows. But, then I have to write all the XRC glue code by hand. A pain in the ass. wxFormbuilder will give you the C++ files but with XRC it gives you just the xrc file and nothing else. Shouldn't it give you the C++ glue code with all the events wired...
- Fri May 25, 2012 9:22 am
- Forum: C++ Development
- Topic: wxTreeCtrl painfully slow on Windows.
- Replies: 2
- Views: 1697
Re: wxTreeCtrl painfully slow on Windows.
m_tree_control->Expand(id); [...] ExpandAllNodes(); [...] CollapseAllNodes(); [...] m_tree_control->SortChildren(m_root_id); Maybe you should call these methods after you added all items and not for each item. Also, try wrapping the whole item creating into Freeze()/Thaw() You my friend are a geniu...
- Fri May 25, 2012 8:19 am
- Forum: C++ Development
- Topic: wxTreeCtrl painfully slow on Windows.
- Replies: 2
- Views: 1697
wxTreeCtrl painfully slow on Windows.
When appending items to a wxtreectrl it takes forever. If I have about 350 "rows" in a tree it'll take > 10 seconds on my 2.53 ghz core 2 duo machine. Is there any way to make it take less? Like 10 seconds less? Here's the function that adds entries to the tree. It gets called repeatedly to add all ...
- Fri May 25, 2012 6:46 am
- Forum: C++ Development
- Topic: Can you call wxYieldIfNeeded too much?
- Replies: 2
- Views: 911
Re: Can you call wxYieldIfNeeded too much?
It is multi threaded but the second thread isn't a problem. It's falling into heavy calculations and not yielding. Adding wxYieldIfNeeded has helped so I'm tempted to go into all the heavy parts (main thread) and just sprinkle the call in liberally. Any downsides?
- Fri May 25, 2012 6:18 am
- Forum: C++ Development
- Topic: can you know exactly how many tree items fit in a window?
- Replies: 0
- Views: 549
can you know exactly how many tree items fit in a window?
I want to add a second tree control so when the first one runs out of space for entries it "spills over" into another one. Is this possible? I'd have to know when the first tree ctrl is "full" so I can populate the next. Can this be done?
- Fri May 25, 2012 6:15 am
- Forum: C++ Development
- Topic: Can you call wxYieldIfNeeded too much?
- Replies: 2
- Views: 911
Can you call wxYieldIfNeeded too much?
My program is stuttering. Adding calls to wxYieldIfNeeded helps. Is there a downside to liberally sprinkling this throughout the code? Should I use some reserve? Are there any cost benefit analysis I should be doing?
- Tue May 22, 2012 9:14 pm
- Forum: C++ Development
- Topic: Mouse event when the user clicks the tilebar. Can it be had?
- Replies: 1
- Views: 717
Mouse event when the user clicks the tilebar. Can it be had?
I want to know when the user clicks the title bar and drags the window around. The activation of the window because of the click doesn't matter to me. I want to knock what his mouse is doing when he clicks and holds and drags the window (wxframe) around. Can this be had?
- Tue May 22, 2012 6:55 am
- Forum: C++ Development
- Topic: Can't add a spacer to a sizer for the life of me. How do I?
- Replies: 4
- Views: 1924
Re: Can't add a spacer to a sizer for the life of me. How do
Thanks for the help but it didn't work. My code, I think, is right. So it looks like this: Hello world Button->Spacer->Help Button->Back Button->Next Button I'm gussing the spacer expands so the hello world button is left justified. The rest of the buttons right justified. Reversing it gives: Spacer...