Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Table: prevent packing by user



On Sat, Oct 7, 2017 at 10:10 AM, Thomas Singer <ts-swt@xxxxxxxxxxx> wrote:
Hi Leo,

Currently, in SmartGit we display the commit messages truncated after x characters. This is sub-optimal. We want to display as much message as the column width allows, but since the messages can become very long, we don't want the column to become excessively wide.


How about truncating the log message that is put into the table/tree (My log messag.....) , and instead allow user to double click on the row to show more info in a popup. This would sort of prevent very very long rows. Or populate full text in some text control underneath the tree widget etc...


 
--
Best regards,
Thomas Singer
=============
syntevo GmbH
http://www.syntevo.com
http://www.syntevo.com/blog


On 06.10.2017 21:37, Leo Ufimtsev wrote:
I don't think there is a direct api for this(But I haven't looked into Tree
widget in a while, maybe there is..), as this is probably done by the
native control itself as oppose to SWT layer.

The only thing I can think of is maybe get the size of the column on the
first click and on the double click force the size of the column to be of
size it was when you first clicked on it.

This is the first time I've heared such a request before. What's the use
case for preventing columns from being packed btw? (just curious..)


On Fri, Oct 6, 2017 at 2:18 AM, Thomas Singer <ts-swt@xxxxxxxxxxx> wrote:

Hi,

Usually, when double-click at the end of a table column's header (e.g.
between 2 neighboring column headers) the user can trigger a packing of the
column (making it wide enough to fit the cell content). But how to prevent
that though keeping the moving and manually resizing of the column?

--
Best regards,
Thomas Singer
=============
syntevo GmbH
http://www.syntevo.com
http://www.syntevo.com/blog
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev






_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



--
Leo Ufimtsev, Software Engineer, Red Hat

Back to the top