Search found 41 matches
- Sat Mar 24, 2007 7:09 am
- Forum: C++ Development
- Topic: event handeling with templates
- Replies: 7
- Views: 1054
it's too complex to post the whole thing and it is only half done so it isn't working yet. and the specific implementation is irrelivent to the general issue. it's for the same thing you use templayes anywere you have common functionality with diferent types, I have a pannel with a text box and a vi...
- Fri Mar 23, 2007 10:49 am
- Forum: C++ Development
- Topic: event handeling with templates
- Replies: 7
- Views: 1054
- Fri Mar 23, 2007 10:22 am
- Forum: C++ Development
- Topic: event handeling with templates
- Replies: 7
- Views: 1054
for example template<class type> class primitive_ctrl : public wxPanel { public: primitive_ctrl(wxWindow*parent, int x, int y, int w, int h, wxString); public: virtual ~primitive_ctrl(void){}; DECLARE_EVENT_TABLE(); }; were should the BEGIN_EVENT_TABLE(/*template<class type> maybe?*/primitive_ctrl, ...
- Fri Mar 23, 2007 9:46 am
- Forum: C++ Development
- Topic: event handeling with templates
- Replies: 7
- Views: 1054
event handeling with templates
ok so I have a wxPanel derived template class and I need some event handeling. how can I get the old BEGIN_EVENT_TABLE / END_EVENT_TABLE bit to work?
- Sun Feb 11, 2007 4:15 am
- Forum: C++ Development
- Topic: does anyone know what this means?
- Replies: 12
- Views: 1966
is this too big? be warned there is some seriously ugly code in some spots, the pertanant part for this thread is window classes->main window->event->main window events.cpp main_window::do_script_formating it's the last two functions (it has a recursive component) and that is one of the less comment...
- Sun Feb 11, 2007 1:35 am
- Forum: C++ Development
- Topic: does anyone know what this means?
- Replies: 12
- Views: 1966
I have a feeling it has something to do with how I've done it, this is all happening inside the event handler for text change on the control that is getting it's text changed by the append call, I was actually a bit suprized I didn't get an infinite recursion when I first started writing this block ...
- Sun Feb 11, 2007 1:25 am
- Forum: C++ Development
- Topic: ok, how should I do this
- Replies: 15
- Views: 2519
well that one would be when the control loses focus, the bad news is it doesn't seem like I can capture the event outside the window that is gaining/losing focus, which seems weird, I'm probably missing something obvious again, I did try EVT_COMMAND_SET_FOCUS(id, func) but it doesn't seem to work an...
- Sun Feb 11, 2007 12:15 am
- Forum: C++ Development
- Topic: ok, how should I do this
- Replies: 15
- Views: 2519
ah, knew there had to be one.
just didn't see it when I looked here
now I feel like an idiot.
thanks
just didn't see it when I looked here
now I feel like an idiot.
thanks
- Sat Feb 10, 2007 11:56 pm
- Forum: C++ Development
- Topic: I am not getting it
- Replies: 7
- Views: 2000
I'm a bit of a newb and this is just such a simple thing I can't imagine it's it and I haven't used any of the automated tools so this might be an increadably stupid suggestion, but, has the frame called SetSizer with the sizer in question? some times it's most obvious thing which bites you in the b...
- Sat Feb 10, 2007 11:51 pm
- Forum: C++ Development
- Topic: ok, how should I do this
- Replies: 15
- Views: 2519
- Sat Feb 10, 2007 10:34 pm
- Forum: C++ Development
- Topic: does anyone know what this means?
- Replies: 12
- Views: 1966
- Sat Feb 10, 2007 9:34 pm
- Forum: C++ Development
- Topic: does anyone know what this means?
- Replies: 12
- Views: 1966
- Sat Feb 10, 2007 9:28 pm
- Forum: C++ Development
- Topic: does anyone know what this means?
- Replies: 12
- Views: 1966
I said it happens when I call AppendText passing a string, I guess I should have mentioned it's for a text control. ok more detailed, script_editor->AppendText(std::string(script,0,i)); script_editor is a wxTextCtrl*, script is a string, i is an int. the code I have is basically exactly like the exa...
- Sat Feb 10, 2007 11:10 am
- Forum: C++ Development
- Topic: does anyone know what this means?
- Replies: 12
- Views: 1966
does anyone know what this means?
http://freespace.volitionwatch.com/blac ... xerror.jpg
I get it every time I call AppendText passing a string, if I click cancel everything seems to work perfectly. But I think I should solve this rather than ignore it.
I get it every time I call AppendText passing a string, if I click cancel everything seems to work perfectly. But I think I should solve this rather than ignore it.
- Fri Feb 09, 2007 9:37 pm
- Forum: C++ Development
- Topic: ok, how should I do this
- Replies: 15
- Views: 2519
I have a text control that has a psudo-script in it, under this text control there is a panel holding controls (the controls are panel derived objects with a label and combo box as members/children) for selecting variables for different types of outputs (most outputs have 3 components, some have mor...