Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » [BUG] GridCtrl uses wrong sorting icon order.
[BUG] GridCtrl uses wrong sorting icon order. [message #40342] |
Mon, 22 July 2013 16:55 |
|
Klugier
Messages: 1076 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
I have noticed that GridCtrl uses wrong sorting icon order. Why we need to change this behavior? Beacuse, it seems most of GUI frameworks such as Qt or GTK use revert notation. Moreover this notation is more intuitive for casual user.
What we need to do is just replace images order (GridCtrl/GridDisplay.cpp - line 214):
if(sortmode == 1)
w.DrawImage(xf, yf, GridImg::SortDsc(), col);
else
w.DrawImage(xf, yf, GridImg::SortAsc(), col);
Insted of
if(sortmode == 1)
w.DrawImage(xf, yf, GridImg::SortAsc(), col);
else
w.DrawImage(xf, yf, GridImg::SortDsc(), col);
The other better solution is just replace icons names in GridCtrl.iml file. (SortDsc -> SortAsc, SortAsc -> SortDsc).
Sincerely,
Klugier
U++ - one framework to rule them all.
|
|
|
Goto Forum:
Current Time: Thu May 16 20:06:48 CEST 2024
Total time taken to generate the page: 0.01633 seconds
|