[ wxwindows-Bugs-1671559 ] wxGrid ColResizing Bug
SourceForge.net
noreply at sourceforge.net
Thu May 10 01:04:58 PDT 2007
Bugs item #1671559, was opened at 2007-03-01 12:08
Message generated for change (Comment added) made by samkv
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1671559&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Grid
Group: Must fix
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: SamKV (samkv)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxGrid ColResizing Bug
Initial Comment:
Hi!
Bug appears when I switch on build in Col Drag & move (i.e. change position of column on a screen by dragging it with a mouse). After I change column position and try to resize it, sometimes it resizes wrong column.
(I have this bug in wx2.8 under GTK)
----------------------------------------------------------------------
>Comment By: SamKV (samkv)
Date: 2007-05-10 11:04
Message:
Logged In: YES
user_id=1732258
Originator: YES
Hello again!
i found 1 error in my patch related to bug 3 :(
and made new one
File Added: p_cpp2
----------------------------------------------------------------------
Comment By: SamKV (samkv)
Date: 2007-05-07 15:38
Message:
Logged In: YES
user_id=1732258
Originator: YES
I can't provide separate patches, because it's all about one thing
"virtual column position", and my method based on additional array.
If it is really necessary, than I can try to make separate patches.
If You want to reproduce bug - it's easy.
Just create any grid (i mean standart wxGrid) and enable column dragging
by move. You need some columns with data and some empty
for example 10 columns where all columns together doesn't feet into window
(to enable scrolling). And column 5 is empty. And data in column 4 is
larger than column itselsf.
Now all looks well.
BUG3:
try to scroll table & than try to move column. You will see blue line
point in wrong place
(scroll position is not used).
BUG1:
switch column 4 and 5. After than try to change column 4 size (by mouse).
If mouse one pixel right from the left side of column, than all is ok, but
if it one pixel left than wrong column sized (try to resize columns 3,4,5,6
to be sure).
BUG2:
Again column 4 and 5 is switched and than you will see that data from
column 4(now 5) overlap column 6. And if data in column 3 is larger than
column itselsf it will NOT overlap column 5(now 4).
BUG4:
try to switch some columns and than to select (at least by mouse) some
cells. for example
again 4 and 5-th columns are switched. than select (5,1)-(7,3)
((column,row)) or (1,1)-(4,3). You should see wrong selection.
----------------------------------------------------------------------
Comment By: Robert Roebling (roebling)
Date: 2007-05-07 14:58
Message:
Logged In: YES
user_id=77100
Originator: NO
Thanks for the patches, could you add descriptions on how to reproduce the
individual bugs. Ideally, you would also provide separate patches for each
bug, not for each file.
----------------------------------------------------------------------
Comment By: SamKV (samkv)
Date: 2007-05-07 12:47
Message:
Logged In: YES
user_id=1732258
Originator: YES
Hi!
I made pathces, this patches fix this problem and some related bugs.
after drag&move was applied:
1) Resizing correct column
2) When drawing table with empty cells, overlap is correct
3) When dragging for move & scrolled drag-point shown in correct place
4) Selection of cells is correct
I made two patches, one for grid.h and one for grid.cpp
Please inform me if they are useful.
File Added: patches.zip
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1671559&group_id=9863
More information about the wx-dev
mailing list