Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl: Difference between xx.Ctrls<EditString>() and xx.Edit(ef1)
ArrayCtrl: Difference between xx.Ctrls<EditString>() and xx.Edit(ef1) [message #2403] |
Tue, 11 April 2006 22:20 |
kevinle10@gmail.com
Messages: 25 Registered: April 2006
|
Promising Member |
|
|
In my header file, I define
private:
ArrayCtrl arrayCtrl;
EditField ef1;
Then in the source file, what's the difference between making this call:
arrayCtrl.AddColumn("Value", 20).Ctrls<EditString>()
and
arrayCtrl.AddColumn("User variable", 10).Edit(ef1);
I did try both. Besides the difference on the appearance, it seems like the second approach gives me on the context menu (right click) a menu item call "Edit Row" for free. But when I select "Edit Row", the row that gets highlighted jumped to an incorrect one.
Long questions short, but
1. What's the prefered method or the use case for each ?
2. In the second approach, how do I make selecting the "Edit row" menu item from the context menu jump to to the right one ?
3. In the first approach, how do I make the edit area occupying the entire cell, leaving no gray area (don't really know how to describe this appearance).
Thanks
|
|
|
Goto Forum:
Current Time: Thu May 16 20:11:08 CEST 2024
Total time taken to generate the page: 0.02607 seconds
|