Search found 11 matches

by violethill
Thu Apr 09, 2009 4:28 am
Forum: C++ Development
Topic: delete wxGridCellAttr
Replies: 0
Views: 325

delete wxGridCellAttr

Hi all, I have GridListItem derived from wxGridCellAttr and I insert into GridTable dereived from wxGridTableBase. //GridListItem GridListItem::GridListItem(const wxString& value, int imageId, void* data) : wxGridCellAttr(*wxBLACK, *wxWHITE, wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT), wxALIGN...
by violethill
Tue Mar 10, 2009 5:53 am
Forum: C++ Development
Topic: Question about Grid (again :D)
Replies: 2
Views: 648

Question about Grid (again :D)

Hello all I have MyGrid derived from wxGrid. I created function to recieve mouse event(when right click on white space) MyGrid* m_Grid; wxMenu* myMenu= new wxMenu(wxEmptyString, 0); for(int col = 0; col < m_Grid->GetNumberCols(); col++ ) { myMenu->AppendCheckItem(wdCOL_LIST_0 + col , m_Grid->GetColL...
by violethill
Mon Mar 09, 2009 9:53 am
Forum: C++ Development
Topic: question about Grid
Replies: 2
Views: 705

thanks lester !
by violethill
Mon Mar 09, 2009 9:13 am
Forum: C++ Development
Topic: question about Grid
Replies: 2
Views: 705

question about Grid

Hi all,

I create MyGrid derived from wxGrid and I want to recieve right click on blank grid(not on label and cell)

so What should I do ?

Thanks for help

violethiLL
by violethill
Fri Feb 20, 2009 5:15 am
Forum: C++ Development
Topic: wxRegEx question
Replies: 7
Views: 929

Thank you so much :D :D :D

violethiLL
by violethill
Fri Feb 20, 2009 3:45 am
Forum: C++ Development
Topic: wxRegEx question
Replies: 7
Views: 929

Thanks johncruise and TrV I try (^|[[:space:]]+)([a-zA-Z]:\\|\\\\)[[:print:]]+\\? Here's my code wxString dir = wxT("D:\temp3\allProj\"); wxRegEx rxPath; wxString pattern = wxT("(^|[[:space:]]+)([a-zA-Z]:\\|\\\\)[[:print:]]+\\?"); if(!rxPath.Compile( pattern, wxRE_ADVANCED)) { DEBUG("Invalid"); retu...
by violethill
Thu Feb 19, 2009 7:16 am
Forum: C++ Development
Topic: How to set wxTE_PROCESS_ENTER with XRC?
Replies: 3
Views: 632

Maybe try

Code: Select all

wxComboBox *m_ComboBox = (wxComboBox*)FindWindow( XRCID( "cbName" ) );
m_ComboBox->SetWindowStyle(wxTE_PROCESS_ENTER);
by violethill
Thu Feb 19, 2009 3:17 am
Forum: C++ Development
Topic: wxRegEx question
Replies: 7
Views: 929

Thank for reply extreme001
extreme001 wrote:Here's one:
\b[a-z]:\\[^/:*?"<>|\r\n]*
I try it and I have errors

: error C2001: newline in constant
: fatal error C1057: unexpected end of file in macro expansion
by violethill
Wed Feb 18, 2009 7:30 am
Forum: C++ Development
Topic: wxRegEx question
Replies: 7
Views: 929

wxRegEx question

Hello, I try to check valid path by used wxRegEx wxRegEx rxPath; if(!rxPath.Compile( wxT("^(([a-zA-Z]:)|(\\{2}[[:alnum:]_] +)\$?)(\\([[:alnum:]_] [[[:alnum:]_] ]))+(\\)$"), wxRE_ADVANCED)) { DEBUG("invalid"); return false; } so It cannot compile My question is how can i check valid directory path Ma...
by violethill
Thu Feb 05, 2009 4:45 am
Forum: C++ Development
Topic: need help to insert 10000++ rows into grid
Replies: 3
Views: 785

I used BeginBatch() and EndBatch() that's ok but it's still slow. My grid is modify from wxGrid and i cannot use Virtual grid I don't know why so Thank you tierra and vdell :D :D :D :D

violethill
by violethill
Tue Feb 03, 2009 8:52 am
Forum: C++ Development
Topic: need help to insert 10000++ rows into grid
Replies: 3
Views: 785

need help to insert 10000++ rows into grid

dear all

I'm try to read txt file and insert into list then i insert to grid, read 1000 rows it's still ok.
but when i have more than 10000+ rows, it's very slow

so my question is What should I do ?
Could you give me a hand ?

Thank you so much