Is it possible to overflow column labels in wxpython grid? - grid

I'd like to know if it is possible to overflow column labels in wxpython grid. I can overflow cells over multiple columns following way:
self.SetCellSize(0, 0, 3, 1)
But how to overflow column labels?

I don't believe that this is currently supported. There was a "sort of" recent addition called the gridlabelrenderer that allows the developer to add colors and font styles to the columns and rows. See the wxPython demo for an example. It uses a wx.DC to do the custom drawing. To me, I would think you could take that code an extend it (i.e. subclass) to make it draw where you wanted...although I don't know how that would affect column size changes.

Related

I have problems setting height for the chart, I want to set the plot height of all charts equally, how to do it?

pls check link. I want to set the plot height of all charts equally, how to do it?
link here: jsfiddle.net/doanvh/vqn24y5w/14/ (type http:// left link)
Image here
You can find the highest value of the height among all charts and based on the found value, modify the rest. I have modified your example a little bit by adding a function (look for the updatePlotHeights function between script tags, HTML tab) that performs a simple calculation that makes all charts' heights equal. Also I have decreased charts' widths in order for you to display them horizontally to compare them.
Example:
http://jsfiddle.net/BlackLabel/qbs6k3Lp/

How to have multiple lines in a treeItem in a treeView in JavaFX?

I was creating like a forum with javaFX. And the question and it's answers are formed using a treeView. Like the question would be a root and it's answers would be it's nodes.
But, it's happening that the treeItems are going straight in only one line, creating a horizontal scroll, and after some words, just putting '...' instead of the rest of the answers. I am using scene builder. Can anyone please tell me a way so that I can eliminate the horizontal scroll, and have the answer in multiple lines?
You have to set the cell's WrapText property, e.g. in the column's cell factory.
Some answers like this one indicate that you have to bind the wrappingWidthProperty to a certain length if you use custom controls inside your cell.

Is possible to do a flex layout with Qt?

I want to make something like a gridlayout but the layout must decide how many elements can be fitted in a row, and when the row is full continue with the next row.
QtGridLayout also fixes the columns width.
I want to something like this (this pictures was manually organised in Horizontals and verticals grids)
When the image size changes one of the buttons goes to first row.
((In this compositions both images looks with the same size, but actually second one is wider than first one).
Some one answer this question but remove it, so the credits are for my unknown friend.
Qt have an example named Flow Layout Example for a widget based form and another for Graphics View widget.

Web Design: Table Unequal Columns

I have a quick question with designing the "yearly subscription" pricing table here - http://iknowfirst.com/4637-2/
As you can see,the columns are not all equal in height, and I am not sure how to go about fixing this. All I did was duplicate the tables used in the "monthly subscription" tab and change some of the information. Anyone have any solutions for fixing this?
Your help is much appreciated!
You've got a couple of options. On the cells that are longer, you'll notice they have extra lines of text.
1) Just add
<br>
to add blank lines to the other cells.
2) Assign CSS classes to each row of cells, and set a min-height property.
Personally, I'd go with #1.

Grid with too many columns in fixed width website

I am using Telerik's Radgrid for a website. Often the grid columns exceed the available width, and extend outside the main content area (fixed width).
So what are my options for presenting very wide grids. horizontal scroll bars just look ugly on my site
Your choices are a combination of the following:
Smaller fonts
Consolidate some cells to have more than one row (e.g. if you have a "start date" and "end date" put the start date on top and the end date on the bottom.
Widen the window
Make some cells appear conditionally (based on user-defined filters). Maybe the most frequently used cells appear normally and a checkbox unhides the less frequently used cells or groups of cells.
Allow horizontal scrolling
Make the window a fluid width
Popup data in a floating <div> via javascript instead of putting it in a column
Am I missing anything?
i am using telerik controls too, one thing i have learned after a lot of work with them is their CSS is usually good, but i also face your problem, and here is my advise.
what Keltex said.
always add a custom class to your Rad Grid where you do fix those nasty stuff.
don't use fixed width for Grid, instead use it on columns and make the grid Fluid, so does the page.
hope this helps.
I agree with devmania and making the grid fluid, I had a similar problem recently. So I made a few of my columns nowrap and left the rest to wrap. It doesn't look great on smaller screens but it's still usable because I've stopped things like date+time columns wrapping. However, once you start using it on a wider screen it looks great.
It all depends on how much of a scrollbar you have. Is it possible to strip out some of the columns and have that information in a popup/flyout somewhere?
Another option is to make which columns are shown user configurable, but you're not really addressing the problem, just making it the responsibility of the user to make it look nice.
If you can't get rid of the horizontal scrollbar you should at least try to put the more important columns first so that your users don't have to scroll to the right very often.

Resources