gtk.treeview resizing of columns without showing headers - treeview

Is it possible to resize gtk.TreeView columns when headers are not visible e.g. by dragging gridlines?
In my situation headers take too much space and I don't want to display them but I want columns to be resizable.

Related

Adding references to images to each row in google sheets

I have a table above and I want to insert an image to each row (if and when the user wants to add).
However adding the image to the cell would not be good as the image will be v small and has to be resized.
I was wondering if there is a way to add the image into a new tab in the same workbook, that is mapping to each row.
Maybe automatically too if a flag in another column say image is mandatory.

Tableau cannot horizontally scroll in worksheets

I am using Tableau for data visualization and generating lists that can be exported to Excel.
However, when the amount of columns get too big, I cannot see all my columns in the view (They are there though). The problem is that there doesn't seem to be a horizontal scrollbar. I can scroll vertically through my rows, but I haven't found a way to do this horizontally to look through my columns, the same way you would do at the data source tab.
If anyone could help me to figure out how to achieve this that would be awesome! I am using Tableau Desktop version 2018.3 on a Mac.
Edit: The problem also seems to be on Windows and is not related to the maximum amount of columns or the view mode.
Example image of the described problem
You are not getting scrollbar because you are viewing it on a worksheet. Try putting it on the dashboard and set dashboard size to fixed and increase width to accommodate all columns.
now you will get horizontal scrollbar for sure
thanks
Besides updating the horizontal row/column label limit #Bernardo mentioned here:
You'll need to make sure you've have selected "Standard" from the display option list at the top of the screen. That options prevent Tableau from fitting everything into the height, width or view of your current display.
Tableau shows a horizontal scroll bar for measures, but not for dimensions. When only dimensions are included on either the Columns or Rows shelf, the lower horizontal scroll bar will not display. Dimensions are treated as headers for measure aggregations and do not generate a horizontal scroll bar when they exceed the width of the view.
To change the Table Layout and increase the number of columns and rows in your table, go to:
Analysis > Table Layout > Advanced
Set each of the Maximum values to 16, which is the limit allowed.

NSTableView align resize columns

I need to create a NSTableView with 3 columns and these columns have to fit the space like this form 20% 60% 20%. I set the constraints in the interface builder but no success. The result is always the same. The 3 columns are shown but in the same size as in the IB, and if i resize the window the table resizes too but the columns keep with the original size.
How can i resize the columns proportionally to tableview size?
How can i align one column always to the right?
Need help please. My project is for OS X, not iPhone.
Thanks in advance.
I'm not sure what constraints you tried to set, but table columns are not views, so they don't participate in auto layout.
There's no automatic support for what you're trying to achieve. NSTableView can be set to distribute a change of width equally among its columns (setting columnAutoresizingStyle to NSTableViewUniformColumnAutoresizingStyle), but that doesn't maintain the proportions like you want.
I think you want to set the table view so that it doesn't resize its columns. Then you would monitor it for any changes in its frame and adjust the column widths yourself.
You can set the column autoresizing style of the table view in IB.
To monitor the frame, you can either use a subclass of NSTableView and override -setFrameSize: or you can have some controller observe the NSViewFrameDidChangeNotification notification from the table view. Either way, you'd want to calculate 20% and 60% of the width. You probably want to round or truncate to an integer. Also, you should use percentages only for two of the three columns. For the third, subtract the width you computed for the first two from the table view's width. That's the easiest way to be sure they all add up.
For each column, check if the width you calculated is different from its current width and, if so, set its width.

SlickGrid: 2 questions: 1) change the orientation of column labels and 2) display d3.js elements inside cells

New to SlickGrid here, and have a couple questions:
1) Is it possible to change the orientation of the column labels? I would like to display a grid without horizontal scrolling, and the data can easily fit if I limit the width of each column. However is I do that, I dont have enough space for my column labels. So I am wondering if - like in excel - I could change the orientation of the column labels (to say 45 degreees vs. horizontal)? If not, any other suggestion?
2) Is it possible to display D3.js type elements (shapes etc) inside cells? If not, are there options to display things such as color coded stop-lights type things?
As you might have guessed, I am building a dashboard that pulls data from a summary table in a DB, and need visual eye candy. It's probably all doable in D3.js, but I'm looking for a faster way to implement, and a data grid appears appropriate.

is there built-in way to make DevExpress XtraGrid GridView column headers/captions diagonal to save horizontal space?

I have a whole bunch of very narrow columns in a DevExpress GridView and I want to save on column header width by making the caption text (which is too wide even at 3-4 letter abbreviations) slanted / diagonal. Well, so I guess I could get rid of text captions and replace them with pictures of diagonal text, at least if GridView will allow sufficient height for the header.
Is there any built-in way to just display the rotated text without going the image way? I don't think I am the first programmer out there trying to squeeze out horizontal space like that, so this doesn't sound like an outlandish thing to support in a popular grid component :-)
If not, and so I do have to use an image for column header, any relevant suggestions or warnings?
XtraGrid does not provide a built in functionality to show column header captions this way. However, this can be done within the CustomDrawColumnHeader event handler. We have posted a tutorial showing how this can be done. By default, it should be located at:
C:\Users\Public\Documents\DevExpress 2010.2 Demos\Components\WinForms\XtraGrid\CS\GridTutorials\GridVerticalHeaders
NOTE, as this feature is implemented using custom draw. It means that this text is only painted this way. Custom drawn text won't be exported or printed.

Resources