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
|
|
|
|
|
ArrayCtrl vs. GridCtrl (A noob's perspective)
By: alendar on Fri, 12 February 2010 19:32
|
|
|
Re: ArrayCtrl vs. GridCtrl (A noob's perspective)
By: unodgs on Fri, 12 February 2010 20:52
|
|
|
Re: ArrayCtrl vs. GridCtrl (A noob's perspective)
By: koldo on Fri, 12 February 2010 21:43
|
|
|
Re: ArrayCtrl vs. GridCtrl (A noob's perspective)
By: fudadmin on Sat, 13 February 2010 07:00
|
|
|
Re: ArrayCtrl vs. GridCtrl (A noob's perspective)
By: mirek on Sat, 13 February 2010 11:31
|
|
|
Re: ArrayCtrl vs. GridCtrl (A noob's perspective)
By: mirek on Sat, 13 February 2010 11:36
|
|
|
Re: ArrayCtrl vs. GridCtrl (A noob's perspective)
By: alendar on Mon, 15 February 2010 22:11
|
|
|
Re: ArrayCtrl vs. GridCtrl (A noob's perspective)
By: Sc0rch on Sat, 13 February 2010 11:49
|
|
|
Re: ArrayCtrl vs. GridCtrl (A noob's perspective)
By: mirek on Sat, 13 February 2010 12:45
|
|
|
Re: ArrayCtrl vs. GridCtrl (A noob's perspective)
By: koldo on Sat, 13 February 2010 16:46
|
|
|
Re: ArrayCtrl vs. GridCtrl (A noob's perspective)
By: fudadmin on Sat, 13 February 2010 19:01
|
|
|
Re: ArrayCtrl vs. GridCtrl (A noob's perspective)
By: fudadmin on Sat, 13 February 2010 19:05
|
|
|
Re: ArrayCtrl vs. GridCtrl (A noob's perspective)
By: unodgs on Sat, 13 February 2010 19:46
|
|
|
Re: ArrayCtrl vs. GridCtrl (A noob's perspective)
By: fudadmin on Sun, 14 February 2010 13:29
|
|
|
Re: ArrayCtrl vs. GridCtrl (A noob's perspective)
By: alendar on Mon, 15 February 2010 22:17
|
|
|
Re: ArrayCtrl vs. GridCtrl (A noob's perspective)
By: alendar on Mon, 15 February 2010 22:42
|
Goto Forum:
Current Time: Sun Apr 28 02:32:30 CEST 2024
Total time taken to generate the page: 0.05945 seconds
|