Search found 17 matches

by FTC
Fri Feb 25, 2011 8:56 am
Forum: C++ Development
Topic: wx 2.9.1 makes floats with commas instead of dots?
Replies: 3
Views: 1211

Thanks! That worked :)
by FTC
Thu Feb 24, 2011 5:06 pm
Forum: C++ Development
Topic: wx 2.9.1 makes floats with commas instead of dots?
Replies: 3
Views: 1211

I found out that the problem is much more severe than I thought. It also affects functions like printf and many of Irrlicht's string operations (I use Irrlicht+wxWidgets). Irrlicht's xml parser gets thrown of by floats with commas just like the ToDouble function and the wxStringArray. I don't think ...
by FTC
Wed Feb 23, 2011 7:19 pm
Forum: C++ Development
Topic: wx 2.9.1 makes floats with commas instead of dots?
Replies: 3
Views: 1211

wx 2.9.1 makes floats with commas instead of dots?

Hi, I have been trying to solve this error for some time now, but no luck. When trying out the propertyGrid in the wxFormBuilder floatproperties are formated like this: "0.234" or "243.1" but in my program I can only use floats like this "0,234" or "243,1". Si...
by FTC
Wed Jan 06, 2010 3:25 pm
Forum: C++ Development
Topic: wxTreeCtrl->Delete deletes everything but the items
Replies: 15
Views: 7331

Ok after solving one problem more than I asked for it works :D Thanks doublemax that was wrong all along :) Now deletion of items wokrs like it should and it does not crash anymore. DeleteAllItems works as well. I guess that this method called the destructors of the (thought to be) itemdata, causing...
by FTC
Wed Jan 06, 2010 12:15 pm
Forum: C++ Development
Topic: wxTreeCtrl->Delete deletes everything but the items
Replies: 15
Views: 7331

Alright, (I hope) I have corrected all syntax specific flaws: http://rapidshare.com/files/331163899/treeproblem.zip.html Still it crashes :( (Thanks for the pointerexplanations, I never really got the hang of that). doublemax: I have changed that, but in the original program, I am working with Irrli...
by FTC
Wed Jan 06, 2010 6:35 am
Forum: C++ Development
Topic: wxTreeCtrl->Delete deletes everything but the items
Replies: 15
Views: 7331

So I can get the real size with sizeof(nodestring.mb_str(wxConvUTF8)) ? On this wiki page it says: mb_str() returns a temporary pointer. If you need to store it in a char* : wxString mystring(wxT("HelloWorld")); char cstring[1024]; strcpy(cstring, (const char*)mystring.mb_str(wxConvUTF8));...
by FTC
Tue Jan 05, 2010 10:15 pm
Forum: C++ Development
Topic: wxTreeCtrl->Delete deletes everything but the items
Replies: 15
Views: 7331

Hm..
I have not been able to reproduce the exact same error, but the program crashes anyway (And I think I did everything right).

Maybe there is an obvious flaw in my programm which I am unable to identify.

http://rapidshare.com/files/330901066/t ... m.zip.html

greetings
by FTC
Mon Jan 04, 2010 3:28 pm
Forum: C++ Development
Topic: wxTreeCtrl->Delete deletes everything but the items
Replies: 15
Views: 7331

The iterator has nothing to do with it (it works on several other occasions), even with the recursive FindItem method I have the same problem. I have now connected a method to the wxEVT_COMMAND_TREE_DELETE_ITEM event and the function is called everytime and the item is valid. But just refuses to get...
by FTC
Mon Jan 04, 2010 8:46 am
Forum: C++ Development
Topic: wxTreeCtrl->Delete deletes everything but the items
Replies: 15
Views: 7331

Ok I have checked in every possible way, even with invoking the first routine from here: http://wiki.wxwidgets.org/WxTreeCtrl And the ID is ok, the Item is found, the data is valid until it comes down to: treeCtrl_ObjectManager->Delete(tmpID); Sometimes it works alright, but sometimes it just stops ...
by FTC
Sun Jan 03, 2010 11:02 pm
Forum: C++ Development
Topic: wxTreeCtrl->Delete deletes everything but the items
Replies: 15
Views: 7331

Uhm I have tried the wxTreeCtrl a little more and none of the Delete methods seem to work (DeleteChildren, DeleteAllItems)? Is there some method I have to call after deleting items?

greetings
by FTC
Sun Jan 03, 2010 8:17 pm
Forum: C++ Development
Topic: wxTreeCtrl->Delete deletes everything but the items
Replies: 15
Views: 7331

wxTreeCtrl->Delete deletes everything but the items

Hi, currently I am fighting with wxTreeCtrl. All I want to do is adding and removing items. Therefore I first stored the itemids in a list (from irrlicht), but when casting the iterator to an id and calling tree->Delete(id) nothing happend. So then I wrote a container class with only one wxTreeItemI...
by FTC
Sat Dec 19, 2009 3:15 pm
Forum: C++ Development
Topic: How do I use a wxStaticBox?
Replies: 3
Views: 1187

Thanks for the help! :)

The wxFormBuilder is what I needed. I will use it for gui-creation now.

greetings
by FTC
Thu Dec 17, 2009 8:55 pm
Forum: C++ Development
Topic: How do I use a wxStaticBox?
Replies: 3
Views: 1187

How do I use a wxStaticBox?

Hi, sorry to bother again, but I am a little confused. I want to use a FlexGridSizer within a StaticBox. I already searched for it, but I only found other StaticBox related problems. I got so far: wxStaticBox *TransformationsBox = new wxStaticBox(MainPanel, -1, wxT("Transformations"),wxPoi...
by FTC
Tue Dec 15, 2009 4:23 pm
Forum: C++ Development
Topic: Sizer do not work
Replies: 6
Views: 3666

Hi!

Thanks adding a panel works.

greetings
by FTC
Tue Dec 15, 2009 4:05 pm
Forum: C++ Development
Topic: Sizer do not work
Replies: 6
Views: 3666

DavidHart wrote:What platform are you using?
Win XP Sp3, compiled with msys and used with Codeblocks
DavidHart wrote:Did resizing make the buttons show correctly, though?
No, they stay the same way they are.