lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] [patch] ellipsize cells in census editor at the end


From: Václav Slavík
Subject: [lmi] [patch] ellipsize cells in census editor at the end
Date: Mon, 4 Nov 2013 17:31:24 +0100

Hi,

On 1 Nov 2013, at 15:00, Václav Slavík <address@hidden> wrote:
>> B. In the current production census view, data in columns with a 
>>  fixed width are left aligned ('...' at the right); now, they 
>>  are center aligned ('...' in the center). Initially, I was not 
>>  enthusiastic about the switch, but after testing with it for 
>>  a while, one gets used to it. My personal preference is to 
>>  have as much of the cell's data in view from the beginning, 
>>  as opposed to a little of the beginning and the end. Is this 
>>  something that can be easily changed?   
> 
> Yes; I'll post a patch in a separate mail after I test it, but it should be 
> straightforward.

And here's the promised patch:

--- a/census_view.cpp
+++ b/census_view.cpp
@@ -1250,6 +1250,7 @@ void CensusView::update_visible_columns()
 
             wxDataViewRenderer* renderer = 
renderer_type_convertor::get(representative_value).create_renderer(representative_value);
             LMI_ASSERT(renderer);
+            renderer->EnableEllipsize(wxELLIPSIZE_END);
 
             list_window_->AppendColumn
                 (new(wx) wxDataViewColumn


Regards,
Vaclav


reply via email to

[Prev in Thread] Current Thread [Next in Thread]