thank you!
that was the problem.
Search found 54 matches
- Thu Aug 20, 2009 7:05 pm
- Forum: C++ Development
- Topic: Why does SetFont destroy the sizer's layout??
- Replies: 6
- Views: 1595
- Wed Aug 05, 2009 2:35 pm
- Forum: C++ Development
- Topic: Why does SetFont destroy the sizer's layout??
- Replies: 6
- Views: 1595
- Wed Aug 05, 2009 1:03 pm
- Forum: C++ Development
- Topic: Why does SetFont destroy the sizer's layout??
- Replies: 6
- Views: 1595
Why does SetFont destroy the sizer's layout??
Hi, I really do not understand what's happening there. I have a piece of code which is working fine: fgs = new wxFlexGridSizer(0,2,1,1); fgs->AddGrowableCol(1); fgs->Add( (new wxStaticText(page,wxID_ANY,wxT("Name :"))) //->SetFont(wxFont(16,wxFONTFAMILY_DEFAULT,wxFONTSTYLE_NORMAL,wxFONTWEI...
- Sun Aug 02, 2009 8:18 pm
- Forum: C++ Development
- Topic: How to clean, populate and refresh a wxPanel?
- Replies: 4
- Views: 1797
Actually, I don't want to destroy and recreate the panel because it can come from different places and already a part of a complex module. It seems simpler to just clean it than to find out where it is coming from and in which sizers it is already included then replace the new panel in that place. B...
- Sun Aug 02, 2009 8:19 am
- Forum: C++ Development
- Topic: How to clean, populate and refresh a wxPanel?
- Replies: 4
- Views: 1797
- Sat Aug 01, 2009 10:49 pm
- Forum: C++ Development
- Topic: How to clean, populate and refresh a wxPanel?
- Replies: 4
- Views: 1797
How to clean, populate and refresh a wxPanel?
Hi, So as the title says, I would like to clean a wxPanel; meaning, erasing every child it may have. Then I would like to assign it a new sizer with and new "children". Finally I would like to update the view. This is the code I use: //page is the panel page->DestroyChildren(); fgs = new w...
- Sat Aug 01, 2009 10:18 pm
- Forum: C++ Development
- Topic: How to use the wxFlexGridSizer?
- Replies: 2
- Views: 874
- Sat Aug 01, 2009 9:19 am
- Forum: C++ Development
- Topic: How to use the wxFlexGridSizer?
- Replies: 2
- Views: 874
How to use the wxFlexGridSizer?
Hi, I would like to achieve something I think being pretty simple. On a panel, I have a wxTreeCtrl on its right a simple panel and under it a button. The idea is that the button should always be minimal and the rest of the space should be split in between the treectrl and the panel as 3/4 for the fi...
- Wed Jul 11, 2007 6:06 am
- Forum: wxDev-C++
- Topic: wxStringTokenizer, can't get it work properly
- Replies: 5
- Views: 1559
- Tue Jul 10, 2007 10:38 pm
- Forum: wxDev-C++
- Topic: wxStringTokenizer, can't get it work properly
- Replies: 5
- Views: 1559
wxStringTokenizer, can't get it work properly
Hi all, I'm using that code to split a text in part with empty line as separator wxStringTokenizer tkz(text, wxT("\r\n\r\n")); while ( tkz.HasMoreTokens() ) { wxString token = tkz.GetNextToken(); // process token here } But with that, it splits the text at each line ( so like if "\r\n...
- Wed Jun 06, 2007 10:43 pm
- Forum: Compiler / Linking / IDE Related
- Topic: winsock.h or winsock2.h can i choose?
- Replies: 10
- Views: 3417
- Tue Jun 05, 2007 4:38 pm
- Forum: Compiler / Linking / IDE Related
- Topic: winsock.h or winsock2.h can i choose?
- Replies: 10
- Views: 3417
- Tue Jun 05, 2007 11:09 am
- Forum: Compiler / Linking / IDE Related
- Topic: winsock.h or winsock2.h can i choose?
- Replies: 10
- Views: 3417
- Tue Jun 05, 2007 6:17 am
- Forum: Compiler / Linking / IDE Related
- Topic: winsock.h or winsock2.h can i choose?
- Replies: 10
- Views: 3417
Actually... i have never used that before... But i tried, i had DECLARE_CLASS(class); in the two classes (.h file) deriving from a wxWidgets class and IMPLEMENT_CLASS(classname, baseclass) in their cpp files. Then it does.... nothing! Still have exactly the same errors. I also tried with DECLARE_DYN...
- Mon Jun 04, 2007 10:28 pm
- Forum: Compiler / Linking / IDE Related
- Topic: winsock.h or winsock2.h can i choose?
- Replies: 10
- Views: 3417