Search found 147 matches

by asadilan
Thu Dec 09, 2010 9:42 pm
Forum: C++ Development
Topic: Replicating listboxselected event
Replies: 4
Views: 642

Replicating listboxselected event

I have a listbox that contains a list of names. whenever a name is click, a box of info will appear in a textctrl.
lets say i have a 1000 names, how do i iterate thru the name without having to click each name?

Thanx
Asa
by asadilan
Fri Nov 19, 2010 5:51 pm
Forum: C++ Development
Topic: wxarrayint vs wxsortedint
Replies: 8
Views: 1254

thanx ive got it working.
here ill show the code

int sortFunc(int n1,int n2)
{
return n1-n2;
}
//this belongs to a function of a class
WX_DEFINE_SORTED_ARRAY_INT(int,wxSortedArrayInt);
wxSortedArrayInt idArraySorted(sortFunc);

Thank you for the help
by asadilan
Fri Nov 19, 2010 5:32 pm
Forum: C++ Development
Topic: wxarrayint vs wxsortedint
Replies: 8
Views: 1254

the sorting function, does it have to be a member or its not supposed to be a member of a class? because if its not a member of a class, this is what i get: error C3867: 'classA::sortFunc': function call missing argument list; use '&classA::sortFunc' to create a pointer to member I tried passing in ...
by asadilan
Fri Nov 19, 2010 5:19 pm
Forum: C++ Development
Topic: wxarrayint vs wxsortedint
Replies: 8
Views: 1254

Hi Doublemax,

Thanx for the answer, but
are you saying that during initialization i have to pass in the pointer to the sortFunc?

how do i do that?
wxSortedArrayInt idArraySorted(*sortFunc);

??

Thanx
by asadilan
Fri Nov 19, 2010 4:58 pm
Forum: C++ Development
Topic: wxarrayint vs wxsortedint
Replies: 8
Views: 1254

returnType classA::function() { . . WX_DEFINE_SORTED_ARRAY_INT(int,wxSortedArrayInt); wxSortedArrayInt idArraySorted(0); idArraySorted.Add(5); . . . } int classA::sortFunc(int* n1,int* n2) { if (*n1 == *n2) { return 0; } return *n1>*n2; } the run time error is access violation reading location 0x000...
by asadilan
Thu Nov 18, 2010 10:53 pm
Forum: C++ Development
Topic: wxarrayint vs wxsortedint
Replies: 8
Views: 1254

wxarrayint vs wxsortedint

Hi all, How do you sort wxArrayInt? i tried in a class member arrayInt.sort(sortFunc); static int wxCMPFUNC_CONV sortFunc(int* n1,int* n2) { if (*n1 == *n2) { return 0; } return *n1>*n2; } but i get undeclared identifier. Tried making the sortFunc as a member of the class but i got lots more errors....
by asadilan
Wed Nov 17, 2010 8:30 pm
Forum: C++ Development
Topic: checkbox in grid
Replies: 1
Views: 684

checkbox in grid

Hi All,

I would like to have an event or some sort of notification when a checkbox is checked in wxGrid.

Does anyone know how?
I couldnt find any event when checkbox is checked.

Thank you
by asadilan
Mon Nov 15, 2010 5:16 pm
Forum: C++ Development
Topic: endmodal vs close
Replies: 1
Views: 544

endmodal vs close

Hi all,

I was wondering if anyone can tell me the difference between the two.

Thanx
by asadilan
Wed Oct 13, 2010 7:50 pm
Forum: C++ Development
Topic: porting console app to wxappconsole
Replies: 1
Views: 716

porting console app to wxappconsole

Hi all, I was wondering if its possible to actually have console app (shell programs) implemented with wxWidget? I read somewhere that wxappconsole might be the solution to this. I have not been able to find any sample code, or how to use docs with this class. Anyone to point me to the right directi...
by asadilan
Tue Oct 05, 2010 5:25 pm
Forum: C++ Development
Topic: wxTextFile
Replies: 1
Views: 412

wxTextFile

Hi All, I was wondering if anyone has ever thought of implementing thread in text parsing using wxTextfile. I tried opening the same file twice, one after another and they openned successfuly. I was thinking of dividing the job of parsing a long text file by 2 parser with thread with each parsing ha...
by asadilan
Wed Jul 28, 2010 3:02 pm
Forum: C++ Development
Topic: wxcombobox remove
Replies: 4
Views: 898

thank you for the info.
Delete worked for me.
It make me wonder tho, whats the purpose of Remove?

I am on windows XP platform.

Thank you
by asadilan
Tue Jul 27, 2010 10:47 pm
Forum: C++ Development
Topic: wxcombobox remove
Replies: 4
Views: 898

wxcombobox remove

Hi All, I am wondering if any of you have come accross this problem. I am trying to remove an item from wxcombobox by using Remove command. The item does not get deleted after the code is executed. Do i have to do an update or refresh after doing the remove? I am using a wxwidget2.6.3. Thank you for...