Search found 9 matches

by el-512
Thu May 12, 2005 2:51 pm
Forum: Platform Related Issues
Topic: wxGrid with Linux and without labels
Replies: 0
Views: 585

wxGrid with Linux and without labels

Hi, i'm using wx 2.6.0 and tried to make a wxGrid with grid->SetRowLabelSize(0); I had no problems with Windows but Linux (Suse 9.1) told me "cannot paint NULL pixmap" And then the program terminated with a segmentation fault. OK, I set the labelsize to 1, so that you cannot see it, But I think ther...
by el-512
Tue May 10, 2005 6:35 am
Forum: C++ Development
Topic: Sorting in a wxListCtrl?
Replies: 3
Views: 1588

Hi, I have to admit, your code looks better. I think, I will change my code. But for me the mayor problem were these lines: itemId1 = Item_list->FindItem(-1, item1); listItem1.SetMask(wxLIST_MASK_TEXT); listItem1.SetId(itemId1); listItem1.SetColumn(cur_col); Item_list->GetItem(listItem1); But as you...
by el-512
Mon May 09, 2005 2:48 pm
Forum: C++ Development
Topic: Sorting in a wxListCtrl?
Replies: 3
Views: 1588

Hi, I had a similar problem last monday. I am not sure, if this is, what you are looking for! As my List Conrol is not a derived class. Here my solution, but to be honest it's a kind of .... because I needed two values, but you can only pass one INT. So you either pass a pointer of a struct (typecas...
by el-512
Mon May 09, 2005 9:30 am
Forum: The Code Dump
Topic: wxGrid with MS Excel (copy/paste)
Replies: 10
Views: 11547

wxGrid with MS Excel (copy/paste)

Hi, Jorg just suggested to place this peace of code here - and I obey :-) I inserted the attached code into the grid-sample and it's supposed to copy / paste data from or to MS-Excel. The basic thing is, that in Excel the clipboard data seperates the fields within one line with tabs, the lines (no w...
by el-512
Mon May 09, 2005 9:10 am
Forum: General Development
Topic: compatibility of a grid with excel
Replies: 6
Views: 1438

OK, here the rest. The include was not inserted correctly last time -anyhow. remember - I inserted these lines in the grid sample. I hope it is no problem for you to get to the "grid-pointer" and the "copy" or "paste" event. Maybe there is a better way, but this is my way - and it works. Hope this w...
by el-512
Mon May 09, 2005 8:01 am
Forum: General Development
Topic: compatibility of a grid with excel
Replies: 6
Views: 1438

Hope this helps, OK this is the COPY and not the PASTE, but this one was faster. Paste will follow later. This is now a code which I included into the grid-sample - and it works. Don't foreget to include #include <wx/clipbrd.h> void GridFrame::CopyData( wxCommandEvent& WXUNUSED(ev) ) { int i,k; wxSt...
by el-512
Wed May 04, 2005 12:40 pm
Forum: Compiler / Linking / IDE Related
Topic: MSVC 6.0 WX 2.6.0 Cannot link samples
Replies: 6
Views: 1455

Hi, some more new data: In project settings / C\C++ / Programming Language C++ I removed the flag Activate Exception Handling But now I get a compiler warning C4530 for all my cpp files. You can see the complete warning below (in German - sorry). Although I do NOT use the MFC it tells me, that this ...
by el-512
Wed May 04, 2005 9:59 am
Forum: General Development
Topic: compatibility of a grid with excel
Replies: 6
Views: 1438

Hi, I have done something similar with a list control - you seen, the columns are seperated with tabs, the lines with a linefeed. Here my code: item_list = (wxListCtrl *) FindWindow(list_id); if (item_list == NULL) { return; } if (item_list->GetSelectedItemCount() <= 0) { return; } max_col = item_li...
by el-512
Wed May 04, 2005 7:12 am
Forum: Compiler / Linking / IDE Related
Topic: MSVC 6.0 WX 2.6.0 Cannot link samples
Replies: 6
Views: 1455

Hi, I have the same problem, but have no clou, what you mean with "Pulled exceptions out and I have clean excecution". I changed my wxInstallation from 2.4.2 to 2.6.0 (removed everything from the computer and installed the new version). I changed nothing in my VC++ 6. I did "complete compile" for th...