Search found 23 matches

by BlueHazzard
Mon Apr 21, 2014 6:54 pm
Forum: Platform Related Issues
Topic: wxGauge in gtk not derived from wxGaugeBase
Replies: 4
Views: 1605

Re: wxGauge in gtk not derived from wxGaugeBase

thanks. i missed this somehow....

greetings
by BlueHazzard
Mon Apr 21, 2014 6:23 pm
Forum: Platform Related Issues
Topic: wxGauge in gtk not derived from wxGaugeBase
Replies: 4
Views: 1605

Re: wxGauge in gtk not derived from wxGaugeBase

i'm porting the scripting engine of c::b to a sqrat, and add the functionality to use wxWidgets XRC forms from scripts. For the binding i need to add all base classes for a control. All platforms use the wxGaugBase as base, except gtk. So i need to add a #if __WXGTK__ in my source and this is ugly. ...
by BlueHazzard
Mon Apr 21, 2014 2:44 pm
Forum: Platform Related Issues
Topic: wxGauge in gtk not derived from wxGaugeBase
Replies: 4
Views: 1605

wxGauge in gtk not derived from wxGaugeBase

Why is wxGauge on the GTK platform not derived from wxGaugeBase?

greetings
by BlueHazzard
Tue Apr 01, 2014 9:23 pm
Forum: C++ Development
Topic: filter all events from XRC resource
Replies: 1
Views: 541

filter all events from XRC resource

hi, i want to process all events generated from a XRC resource in my custom event handler. This is my current code: m_dialog = wxXmlResource::Get()->LoadDialog(NULL,name); m_dialog->SetNextHandler(this); SetPreviousHandler(m_dialog); and i overload the TryBefore method of my event handler. But no ev...
by BlueHazzard
Fri Mar 01, 2013 7:19 pm
Forum: C++ Development
Topic: Floating point exception on startup
Replies: 3
Views: 1367

Re: Floating point exception on startup

i can reproduce the error with the aui example. And also my own programs use aui, so it seems the error is in aui. gdb output from auidemo: Program received signal SIGFPE, Arithmetic exception. 0x00007ffff6da7bd0 in wxCSConv::DoCreate() const () from /usr/local/lib/libwx_gtk2u-2.9.so.5 i use the gcc...
by BlueHazzard
Thu Feb 28, 2013 8:07 pm
Forum: C++ Development
Topic: Floating point exception on startup
Replies: 3
Views: 1367

Floating point exception on startup

Hello, i tried a few of my progs to run under wx2.9_svn on linux. But some times i get Floating point exception. after i start the program. The errors seem to come somehow before the initialization of my code, because if i put a printf() at the beginning of App::OnInit() it didn't reach it.... if i ...
by BlueHazzard
Sun Feb 10, 2013 7:59 pm
Forum: Platform Related Issues
Topic: wxChar wxStringCharType error
Replies: 1
Views: 2352

wxChar wxStringCharType error

Hello, this is somehow a crosspost from the Code::Blocks forum (http://forums.codeblocks.org/index.php/topic,17491.msg119969/topicseen.html#msg119969). I try to compile C::B in Linux Mint 12 with wx2.9.3 But i get the following error: /trunk/src/include/logmanager.h|24|error: cannot convert ‘const w...
by BlueHazzard
Thu Aug 30, 2012 4:30 pm
Forum: Platform Related Issues
Topic: Print long double
Replies: 2
Views: 1329

Re: Print long double

It was my fault....
i had to recompile wxWidgets with the "-posix" compiler flag...

thank you anyway
by BlueHazzard
Wed Aug 29, 2012 11:21 pm
Forum: Platform Related Issues
Topic: Print long double
Replies: 2
Views: 1329

Print long double

Hello, i need to store a int64 in a floating Point Number. So i need long double (18digits and 18 digits) . MinGW has support for long double on Windows (http://sourceforge.net/project/shownotes.php?release_id=24832 §. Point). But wxString::Format("%Lf",long double) gives me the wrong format specifi...
by BlueHazzard
Mon Jul 30, 2012 9:51 pm
Forum: Platform Related Issues
Topic: wxEVT_COMMAND_MENU_SELECTED not firing
Replies: 2
Views: 1744

Re: wxEVT_COMMAND_MENU_SELECTED not firing

Thank you for the reply, you brought me to the right approach. I have found my error: menu.Connect(wxEVT_COMMAND_MENU_SELECTED, (wxObjectEventFunction)&CObjectPG::RightMenuClick, NULL, this); I forget to cal evt.skip() in CObjectPG::RightMenuClick(), so the event couldn't propagate to my submenu eve...
by BlueHazzard
Mon Jul 30, 2012 7:26 pm
Forum: Platform Related Issues
Topic: wxEVT_COMMAND_MENU_SELECTED not firing
Replies: 2
Views: 1744

wxEVT_COMMAND_MENU_SELECTED not firing

Hello, i have a popup menu with submenus. Those submenus are created dynamically, and the events are also bound dynamically. wxMenu menu; wxMenu* ViewSubMenu = new wxMenu(); for(i = 0; i < object->GetRepresentation()->GetCount() ; i++)     {         wxMenuItem* tmpMenu =  ViewSubMenu->Append(VIEW_ME...
by BlueHazzard
Sun Jul 22, 2012 10:22 pm
Forum: C++ Development
Topic: wxPropertyGrid chancing event
Replies: 2
Views: 898

Re: wxPropertyGrid chancing event

Thanks for your reply.
I think i have to chance my update system.
by BlueHazzard
Sat Jul 21, 2012 9:29 pm
Forum: C++ Development
Topic: wxPropertyGrid chancing event
Replies: 2
Views: 898

wxPropertyGrid chancing event

Hello, i have a PropertyGrid, populated with a lot informations. I refresh this informations with a Timer. My problem is, that i don't know when the user begins to edit one property. Now when the user is editing and the refresh timer triggers, the value from the user is overwritten. Is there a possi...
by BlueHazzard
Tue Sep 13, 2011 10:02 pm
Forum: Compiler / Linking / IDE Related
Topic: cannot pass objects of non-trivially-copyable type
Replies: 5
Views: 6424

Re: cannot pass objects of non-trivially-copyable type

Hi,
thank you, with your help i managed now to fix all my errors. Under wxWidgets 2.8 i never used unicode, because there was more work with this wxT or T on the beginning of the Strings, but with 2.9 i see this is no longer necessary, so in the future i will use unicode :wink:

thanks a lot!
by BlueHazzard
Tue Sep 13, 2011 9:19 pm
Forum: Compiler / Linking / IDE Related
Topic: cannot pass objects of non-trivially-copyable type
Replies: 5
Views: 6424

Re: cannot pass objects of non-trivially-copyable type

Hello, i have now corrected my error, i have replaced wxLogError(wxT("Konnte mit Socket %s nicht verbinden..."),addr.IPAddress().char_str()); with wxLogError(wxT("Konnte mit Socket %s nicht verbinden..."),addr.IPAddress().c_str()); but now i get other errors that are connected with unicode.... I don...