[ wxwindows-Bugs-1605706 ] wxMac: List’s column labels abbreviation broken

SourceForge.net noreply at sourceforge.net
Tue May 29 09:30:41 PDT 2007


Bugs item #1605706, was opened at 2006-11-29 23:24
Message generated for change (Comment added) made by ippei
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1605706&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: wxMac specific
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Ippei UKAI (ippei)
Assigned to: Kevin Ollivier (kollivier)
>Summary: wxMac: List’s column labels abbreviation broken

Initial Comment:
With wxMac 2.8rc1 has list's column labels abbreviated when the column width gets narrow. However, sometimes the abbreviated labels do not go back to full labels, especially when the labels were abbreviated when the list is initialised.
 

----------------------------------------------------------------------

>Comment By: Ippei UKAI (ippei)
Date: 2007-05-29 17:30

Message:
Logged In: YES 
user_id=1072623
Originator: YES

Okay, I narrowed down what exactly is going on:

- Apparently the non-subclassed table works okay at least as to the
abbreviation is concerned. That's one thing.
- In both subclassed and non-subclassed cases, column width doesn't get
correct width with InsertColumn. ie. m_list->InsertColumn( 0, _("#"),
wxLIST_FORMAT_RIGHT, 25); gives me about 70pixels width.
- In both subclassed and non-subclassed cases, EVT_LIST_COL_END_DRAG in
event table does not give me the column width change as documented. ie.
EVT_LIST_COL_END_DRAG(-1, ImagesList::OnColumnWidthChange) does not call my
OnColumnWidthChange on column width change.
- SetColumnWidth with specific width works.
- SetColumnWidth with wxLIST_AUTOSIZE however, changes the width to the
width same as one with InsertColumn call.

(All above are with wxLC_REPORT mode.)

I'm suspecting the real width that widget keeps and the width that wxMac
keeps internally start mismatching somehow, which maybe resulting in the
wrong abbreviation behaviour. Probably this isn't the same bug as the first
report anymore.

I've filed a new report:
http://sourceforge.net/tracker/?func=detail&atid=109863&aid=1727710&group_id=9863

----------------------------------------------------------------------

Comment By: Ippei UKAI (ippei)
Date: 2007-05-29 00:25

Message:
Logged In: YES 
user_id=1072623
Originator: YES

I tried 2.8.4 release, and it seems still not working; if the column
started its life narrow, the label gets abbreviated even when that column
gets widened.

The new experimental build is available here (PPC is against 10.3.9 SDK,
Intel 10.4u SDK):
http://homepage.mac.com/ippei_ukai/software/hugin/HuginOSX-v061_wx284.zip
(Original code available here:
http://sourceforge.net/project/showfiles.php?group_id=77506&package_id=7842
6&release_id=440929)
File Added: ScreenshotWith284.jpg

----------------------------------------------------------------------

Comment By: Ippei UKAI (ippei)
Date: 2006-12-23 06:23

Message:
Logged In: YES 
user_id=1072623
Originator: YES

I've just confirmed it's NOT fixed even with the suggested mod. (I've
compiled the 2.8 release with the suggested modification below.)

The recompiled experimental build is available here:
http://homepage.mac.com/ippei_ukai/software/hugin/HuginOSX-v061_wx280.zip

----------------------------------------------------------------------

Comment By: Ippei UKAI (ippei)
Date: 2006-12-11 11:26

Message:
Logged In: YES 
user_id=1072623
Originator: YES

I'm sorry but I don't really have a time to recompile everything at the
moment.
If it's ok, I will check the progress among other issues when RC2 comes
out.

Thanks

----------------------------------------------------------------------

Comment By: Kevin Ollivier (kollivier)
Date: 2006-12-01 00:13

Message:
Logged In: YES 
user_id=248468
Originator: NO

Okay, I figured out how to reproduce this. It happens when an item is
added, as your program calls SetColumnWidth to adjust columns at that time.
Apparently, if the column width is too small when SetColumnWidth is called,
it uses the 'clipped' text as the item's label rather than the full item
label... 

As I don't have any sample code I can debug this with ATM, could you tell
me if adding the following to listctrl_mac.cpp in
wxMacDataBrowserListCtrlControl::wxMacDataBrowserListCtrlControl helps?

SetDataBrowserTableViewGeometry( GetControlRef(), true, false );

You can add it right above this line:

SetDataBrowserCustomCallbacks( GetControlRef(), &callbacks );

----------------------------------------------------------------------

Comment By: Ippei UKAI (ippei)
Date: 2006-11-30 21:46

Message:
Logged In: YES 
user_id=1072623
Originator: YES

Attached.

I compile PPC portion against 10.3.9 SDK, so there might be a difference
beyond the endians.
You can run the PPC portion of the App with Rosette. Just open the
inspector in Finder and see the option.

----------------------------------------------------------------------

Comment By: Kevin Ollivier (kollivier)
Date: 2006-11-30 21:33

Message:
Logged In: YES 
user_id=248468
Originator: NO

I don't have a 10.4.8 PPC box, but I do have an Intel box and I don't see
the problem here. Do you have a screen shot?

----------------------------------------------------------------------

Comment By: Ippei UKAI (ippei)
Date: 2006-11-30 18:15

Message:
Logged In: YES 
user_id=1072623
Originator: YES

I'm updating the experimental build here:
http://homepage.mac.com/ippei_ukai/software/hugin/HuginOSX-v061_wx28rc1.zip.zip
And the binary release of the same version which uses wxMac 2.7.0-1 with
some patches found here:
http://downloads.sourceforge.net/hugin/HuginOSX-v061_build2.dmg

The relevant code can be found here:
http://hugin.cvs.sourceforge.net/hugin/hugin/src/hugin/ImagesList.cpp?revision=1.37&view=markup


Sorry for not having a short sample, but if you could play with it and fix
the problem, I'd really appreciate it.
I use Mac OS X 10.4.8 PPC by the way.

----------------------------------------------------------------------

Comment By: Kevin Ollivier (kollivier)
Date: 2006-11-30 05:45

Message:
Logged In: YES 
user_id=248468
Originator: NO

I've tried initializing columns with very long names, but when I resize
the column, the label always changes to a full label for me. Could you tell
me more about what OS and architecture (intel or ppc?) you're running?
Also, do you know of any samples that exhibit this problem? 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1605706&group_id=9863




More information about the wx-dev mailing list