|
|
Home » Community » Newbie corner » ArrayCtrl vs. GridCtrl (A noob's perspective)
ArrayCtrl vs. GridCtrl (A noob's perspective) [message #25150] |
Fri, 12 February 2010 19:32  |
alendar
Messages: 47 Registered: January 2010 Location: Idaho, USA
|
Member |
|
|
I started out using ArrayCtrl because I didn't see GridCtrl right off. It works good, but since it stores Value objects I wondered if it might not be faster if it was just string objects.
I found GridCtrl and got it to work. I put both next to each other and just flipped the names between them in the layout and compared the behavior on a large set.
My notes:
- ArrayCtrl has the Accel function, which filters keystrokes and scans ahead to the first matching grid item. I'll steal the code, clone GridCtrl and add it because its a nifty feature for me. I'll probably try to make it multi-character, too.
- ArrayCtrl works with dynamically created windows, but GridCtrl blows chunks in the destructor somewhere. I shouldn't have been using dynamic construction anyway, but it's nice to know for when I do.
- GridCtrl has:
Viewable row count
Interactive row resize (I think)
3-state sort marker, ArrayCtrl is 2 state
Loads faster
Lets user size header height, which is nice
Doesn't flicker when multithreaded (GREAT!)
"live" mouse hover highlight works great
Default context menu is prettier, better icons
Has clipboard built in
Has alternating row coloring with single setting
Sorts much faster than ArrayCtrl for smaller sets
No memory leaks on either with MT (except with dynamic window)
I'm going with GridCtrl because of the no flicker. I use threads to populate the grid and let the user interact with it on the main thread, so flicker is considerable.
Anyone else try both? I'm curious what other differences there are when stacked up against each other.
cd7651feeb698f6ac6cec1f6deda5e5b
[Updated on: Fri, 12 February 2010 19:34] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: ArrayCtrl vs. GridCtrl (A noob's perspective) [message #25197 is a reply to message #25191] |
Sat, 13 February 2010 19:46   |
|
Wow! That should be me first with "gridiziced" ide . I see you know GridCtrl quite deep. Sorry for getting the knowledge without documentation.. I must finally finish it (to avoid this repeated question about difference to arrayctrl and to reveal all grid features)
|
|
|
|
|
|
Re: ArrayCtrl vs. GridCtrl (A noob's perspective) [message #25262 is a reply to message #25259] |
Mon, 15 February 2010 22:42  |
alendar
Messages: 47 Registered: January 2010 Location: Idaho, USA
|
Member |
|
|
[quote title=alendar wrote on Mon, 15 February 2010 16:17]luzr wrote on Sat, 13 February 2010 06:45 |
alendar wrote on Fri, 12 February 2010 13:32 | but GridCtrl blows chunks in the destructor somewhere
|
If it does, it is not a designed feature It is a bug - you shold try to create a "testcase" and post it to the GridCtrl forum.
No bugs are to be tolerated...
Mirek
|
Well, I can't duplicate it now. Boy is my face red!
cd7651feeb698f6ac6cec1f6deda5e5b
|
|
|
Goto Forum:
Current Time: Sat Apr 26 20:33:40 CEST 2025
Total time taken to generate the page: 0.01226 seconds
|
|
|