Search found 99 matches

by Disch
Wed Oct 13, 2010 12:06 am
Forum: C++ Development
Topic: WxDataViewListCtrl not sorting by column
Replies: 4
Views: 2776

I'm having this same problem.

Sorting by columns with strings and dates doesn't seem to work. =(
by Disch
Sat Oct 09, 2010 12:15 am
Forum: C++ Development
Topic: Editing dates in wxDataViewListCtrl
Replies: 0
Views: 988

Editing dates in wxDataViewListCtrl

Hey everyone. I've been posting a lot about my adventures with wxDataViewListCtrl and related classes. I've gotten most of it worked out. The last thing I need to learn how to do is have a date editable from within the wxDataViewListCtrl (or whatever other class I need to use instead). Here's my sim...
by Disch
Fri Oct 08, 2010 11:52 pm
Forum: C++ Development
Topic: wxDataViewListCtrl and wxTAB_TRAVERSAL don't play nice?
Replies: 0
Views: 880

wxDataViewListCtrl and wxTAB_TRAVERSAL don't play nice?

I've been ripping my hair out all day trying to get wxDataViewListCtrl to work. In particular, I had one problem that would persist: - whenever I would edit a text field, pressing enter would do nothing (when it should end the editing session). I would have to click on another field in the control t...
by Disch
Fri Oct 08, 2010 6:46 pm
Forum: C++ Development
Topic: wxDataViewCtrl problems
Replies: 0
Views: 1709

wxDataViewCtrl problems

Hello all. I'm having an extremely difficult time understanding wxDataViewCtrl and related classes. Right now I'm trying to make the most simple of simple test. Here's what I'm doing so far: wxDataViewListCtrl* m_ctrl = new wxDataViewListCtrl( this, wxID_ANY ); m_ctrl->AppendToggleColumn( wxT("...
by Disch
Tue Sep 28, 2010 8:45 pm
Forum: Compiler / Linking / IDE Related
Topic: Fixed wxWidgets 2.9.1 project files Visual Studio 2010
Replies: 12
Views: 34500

Hey everyone, I'm having a bit of trouble with VC++ 2010 Express. I've followed the directions on this thread as well as on the below page: http://wiki.wxwidgets.org/Microsoft_Visual_C%2B%2B_Guide#Visual_Studio_C.2B.2B_2010 But I keep getting tons of compiler errors as if I'm missing some of the sou...
by Disch
Mon May 24, 2010 3:10 am
Forum: C++ Development
Topic: wxWindow scrollbar questions
Replies: 2
Views: 1308

Sweet.

Thank you.
by Disch
Mon May 24, 2010 1:20 am
Forum: C++ Development
Topic: wxWindow scrollbar questions
Replies: 2
Views: 1308

wxWindow scrollbar questions

Hey everyone. I have a question about scroll bars. Specifically with wxWindow::SetScrollbar. How can I find out the size of the scrollbar? For example the width of the vertical scrollbar will cut into the client area. How can I find out how wide it is? The only thing I can think of would be to call ...
by Disch
Thu May 20, 2010 2:26 am
Forum: C++ Development
Topic: Problem with wxScrolledWindow + wxGLCanvas
Replies: 5
Views: 2800

Auria: That makes sense. I'll give that a go. Thanks. yuri: You mean like draw my own scroll bars via OpenGL instead of using the window managers? What's the benefit of that? Seems to me like it would just be tons more work and would clash with the user's display scheme... and would be unintuitive, ...
by Disch
Wed May 19, 2010 2:27 am
Forum: C++ Development
Topic: Problem with wxScrolledWindow + wxGLCanvas
Replies: 5
Views: 2800

Problem with wxScrolledWindow + wxGLCanvas

Hey everyone. I'm trying to have a wxScrolledWindow with a wxGLCanvas for a client area. So far so good, except for one problem. I've uploaded pictures to illustrate skiffmapA: The window before any scroll (OK) skiffmapB: The window after scrolling right 1 "tick" (OK) skiffmapC: The window...
by Disch
Sun Mar 15, 2009 1:48 am
Forum: Compiler / Linking / IDE Related
Topic: Setting up in Code::Blocks
Replies: 2
Views: 1320

I think I figured it out.

The reason the wizard wasn't working right for me before was because I was messing with the "advanced options" (which seemed pretty basic, but whatever)

Anyway I've worked out a setup that is painless.

Thanks
by Disch
Sun Mar 15, 2009 12:10 am
Forum: Compiler / Linking / IDE Related
Topic: Setting up in Code::Blocks
Replies: 2
Views: 1320

Setting up in Code::Blocks

I've been an MSVS boy my whole life, and have been spoiled by nice IDEs that don't require you to know anything about makefiles or any of that nonsense. But now I'm diving into Kubuntu and am trying to use Code::Blocks as a replacement IDE. Now in MSVS, once I got wx set up, all I had to do was add ...
by Disch
Thu Feb 26, 2009 8:56 pm
Forum: C++ Development
Topic: Information about wxWidgets
Replies: 2
Views: 1078

Re: Information about wxWidgets

1) 2D/3D support via OpenGL

2) no idea

3) Absolutely. Wonderfully, in fact.
by Disch
Fri Feb 13, 2009 6:24 pm
Forum: C++ Development
Topic: ScreenToClient inverted Y!
Replies: 3
Views: 1607

You might want to subtract an additional one:

Code: Select all

Screen.y = GetClientSize().GetHeight() - Screen.y - 1;
Without it, the range becomes [1-height] instead of the traditional [0-height)
by Disch
Fri Feb 13, 2009 5:41 pm
Forum: C++ Development
Topic: Load from file in unicode
Replies: 7
Views: 2477

Ironic you replied when you did -- I was just about to post with an update ^^ I just had to do something like this in a program I'm working on. If you're still running into problems you can try this code out. It's working fine for me in both Unicode and non-Unicode builds: void PutString(const wxStr...
by Disch
Fri Feb 13, 2009 3:25 pm
Forum: C++ Development
Topic: Cross-platform fonts
Replies: 3
Views: 1725

If worse comes to worse you can distribute the desired font file with your program (or embed it) and use something like FreeType, which takes a font file and renders glyphs from it. You won't be able to use wx's usual text rendering functions but you could wrap some kind of wx interface around it so...