Search found 21 matches

by asitis
Fri Jul 24, 2009 6:04 am
Forum: C++ Development
Topic: how to convert wxArrayString to wxString?
Replies: 3
Views: 989

how to convert wxArrayString to wxString?

This issue have been raised before but I still can't find solution. For example

wxArrayString strArr = new wxArrayString();
strArr.Add(_("Monday"));
strArr.Add(_("Tuesday"));

How do I convert strArr[0] to wxString so that I can dislplay it on a wxLabel?

Any help appreciated
by asitis
Fri Jul 24, 2009 5:57 am
Forum: C++ Development
Topic: is it two arrays or one?
Replies: 1
Views: 346

is it two arrays or one?

I have two arrays as follow wxString aa[] = {_("Mon"), _("Tue"), _("Wed"), _("Thu"), _("Fri"), _("Sat"), _("Sun")}; wxString timeArr[] = {_("0:00"), _("1:00"), _("2:00"), _("3:00"), _("4:00"),_("5:00"), _("6:00"), _("7:00"), _("8:00"), _("9:00"), _("10:00"), _("11:00"), _("12:00"), _("1:00"), _("2:0...
by asitis
Tue Jul 21, 2009 2:12 am
Forum: C++ Development
Topic: can't fire mouse-up event in wxgrid
Replies: 3
Views: 642

Thanks Jim, but I could not get it to work, I'm not sure which handler handles EVT_GRID_CELL_BEGIN_DRAG. But it's ok, I am using the wxEVT_GRID_RANGE_SELECT I think it does the job although I am not sure why it fires event before any grid is selected. By the way can you repost the link again please....
by asitis
Mon Jul 20, 2009 5:05 am
Forum: C++ Development
Topic: can't fire mouse-up event in wxgrid
Replies: 3
Views: 642

can't fire mouse-up event in wxgrid

I need to fire mouse up event when user clicks a cell or click and drag to select multiple cells. wxEVT_GRID_RANGE_SELECT seems promising but I can't not get it to work, the event is fired before the mouse is dragged. Is there a workaround for this? Any help appreciated. I am using wxWidgets in Code...
by asitis
Wed Jul 15, 2009 5:03 am
Forum: C++ Development
Topic: cannot convert `const char*' to `const WCHAR*' !
Replies: 3
Views: 2018

Thanks doublemax for pointing out I should use the wxWidgets equivalent in the first place. The problem is I am almost new to the C++ world especially new to wxWidgets and there is not much help/tutorial about wxWidgets on the Internet (or perhaps I have not done enough googling) so I tend to stick ...
by asitis
Tue Jul 14, 2009 9:42 am
Forum: C++ Development
Topic: cannot convert `const char*' to `const WCHAR*' !
Replies: 3
Views: 2018

cannot convert `const char*' to `const WCHAR*' !

Hi guys I am new c++ and wxwidgets, I am wondering if anyone can help me with the piece of code below, the code just basically reads all the folder names in a folder =============================================== char* path = "C:\\Documents and Settings\\*.*"; WIN32_FIND_DATA filedata; HANDLE handl...