Search found 22 matches

by meisjohn
Wed Nov 28, 2007 6:12 pm
Forum: C++ Development
Topic: infinite loop in ~wxClassInfo
Replies: 4
Views: 626

Does anyone have any clue why this doesn't work? I still can't figure it out.
by meisjohn
Sat Nov 24, 2007 8:40 pm
Forum: C++ Development
Topic: infinite loop in ~wxClassInfo
Replies: 4
Views: 626

What happens in the 'grid' sample? If this does the same thing, your wxWidgets installation has a problem; if not, your code has a problem ;) . I tried the grid sample and it worked fine (much to my dismay.) Soooo, I tried flowing through my changes in the past week (a surprising amount, actually) ...
by meisjohn
Thu Nov 22, 2007 5:37 pm
Forum: C++ Development
Topic: wxTimer question
Replies: 3
Views: 1981

Did you declare the event table for myAppFrame using the "DECLARE_EVENT_TABLE()" macro?

It looks as though when you begin the event table, it thinks you're trying to override the base class's event table.

John.
by meisjohn
Thu Nov 22, 2007 5:22 pm
Forum: C++ Development
Topic: infinite loop in ~wxClassInfo
Replies: 4
Views: 626

infinite loop in ~wxClassInfo

When I close my application, it gets stuck in the wxClassInfo destructor, and it never returns. When I send a kill with signal 6 (to generate a core file) It appears that the destructor is stuck in this loop: while (info) { if ( info->m_next == this ) { info->m_next = m_next; break; } info = info->m...
by meisjohn
Mon Nov 05, 2007 12:44 pm
Forum: Platform Related Issues
Topic: may be a stupid question but...
Replies: 2
Views: 551

I'm actually using Eclipse... I originally developed everything in kdevelop in linux, but wanted an IDE I could use in both environments.

That did the trick... I'm not sure how I missed it when I was copying the wx-config parameters...

Thanks!
by meisjohn
Mon Nov 05, 2007 2:15 am
Forum: Platform Related Issues
Topic: may be a stupid question but...
Replies: 2
Views: 551

may be a stupid question but...

I just ported my application from Linux (wxGTK) to Windows XP (wxMSW). The transition went mostly smooth (aside from some assumptions about the GTK platform that I didn't realize I was making.) Anyway, I've noticed that whenever I open my application in windows, a terminal window comes up first. Is ...
by meisjohn
Sat Nov 03, 2007 4:29 pm
Forum: C++ Development
Topic: Updating / resizing contents of wxScrolledWindow
Replies: 0
Views: 600

Updating / resizing contents of wxScrolledWindow

Hey all, I've got an application that has data displayed in a wxScrolledWindow. The data is housed in a bunch of wxPanels that get destroyed and recreated when I update the data. Problem is that every time I do this, the wxScrolledWindow things it gets bigger (though it does not) and the vertical sc...
by meisjohn
Sat Aug 18, 2007 5:03 pm
Forum: C++ Development
Topic: Resizing Dialog call OnPaint()
Replies: 4
Views: 724

Yeah, I avoided the necessity for a OnSize method by using that flag too. That's the only reason I knew to do it. It was plaguing me that the entire window wouldn't redraw when I resize in the OnPaint call, but then i looked closer at the wxPaintDC and wxWindow documentation and found that gem. :D
by meisjohn
Sat Aug 18, 2007 3:18 pm
Forum: C++ Development
Topic: Resizing Dialog call OnPaint()
Replies: 4
Views: 724

I'd also suggest adding the wxFULL_REPAINT_ON_RESIZE style flag to your canvas class if you do any scaling or moving when you resize.
by meisjohn
Sat Aug 18, 2007 1:49 pm
Forum: C++ Development
Topic: wxRegEx Abort on comma?
Replies: 1
Views: 300

Okay... i gave up on the regex, and i'm using wxDatePickerCtrl instead. It appears, though, that wxDatePickerCtrlGeneric::SetFormat is not implemented in datectrlg.cpp. I want to give the user the actual appearance of what the text will look like when it is redisplayed later (Month DD, YYYY). Is thi...
by meisjohn
Thu Aug 16, 2007 3:15 pm
Forum: C++ Development
Topic: wxRegEx Abort on comma?
Replies: 1
Views: 300

wxRegEx Abort on comma?

Hello all, When I try to evaluate a string with a comma in it using wxRegEx::Match(), may application aborts. Is there something I'm doing wrong, is this a known issue, do I just need to rebuild? I'm trying to evaluate input from a user that happens to be a date. I've successfully done other regexes...
by meisjohn
Wed Aug 15, 2007 3:39 am
Forum: C++ Development
Topic: Using GetDC() in GetPageInfo()
Replies: 1
Views: 500

I ran into the same problem when I first started using the printing utilities... I suggest that you have a printout class member like numpages and define numpages when OnPreparePrinting() is called in your class. The print DC is available at that point. The same numpages member can be used in HasPag...
by meisjohn
Tue May 01, 2007 6:49 pm
Forum: C++ Development
Topic: Declaring event tables with templated classes
Replies: 1
Views: 322

Nevermind. I figured it out by looking at event.h: template <typename T> class MyPanel: public wxPanel { ... }; BEGIN_EVENT_TABLE_TEMPLATE1(MyPanel, wxPanel,T) EVT_PAINT( MyPanel<T>::OnPaint ) END_EVENT_TABLE() template <typename T> void MyPanel<T>::OnPaint( wxPaintEvent& WXUNUSED(event) ) { ... } T...
by meisjohn
Tue May 01, 2007 6:26 pm
Forum: C++ Development
Topic: Declaring event tables with templated classes
Replies: 1
Views: 322

Declaring event tables with templated classes

Has anyone been able to declare an event table with a templated class? I'm trying to do this, and I can't seem to get the magical formula.

BTW, I've tested the class without the event table, and it does work right for other means, and yes, I've declared the specialized methods.

Thanks,
John.
by meisjohn
Sun Feb 18, 2007 1:14 pm
Forum: C++ Development
Topic: wxDC GetTextExtent and GetPartialTextExtents
Replies: 1
Views: 444

As it turns out, I looked at the wxGTK code (because that's the platform i happen to be testing on at the moment) and the code for DoGetPartialTextExtent was borrowed from Scintilla's PlatGTK ( SurfaceImpl::MeasureWidths, i believe). In any case, the "widths" array that GetPartialTextExtent returns ...