|
I need to draw a line grid on a windows form that contains 4 rows and 4 columns.
Started by burntsugar on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
In response to your comment, youHave a look at: How to: Draw a Line on a Windows Form
If you want something for controlling layout(); grphx.Clear(this.BackColor); ....
Rather than a simple line grid, you can use a TableLayoutPanel .
|
|
I have a grid with 100 columns and 100 rows. I want to draw a line between the centre of one of those grid squares and another, say 45,25 to 75,38.
I am happy with being able to draw a line, but how can i find the x and y pos of the centre of the two ...
Started by Kev Hunter on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Your line should be drawn from 45,25 to 75,38The coordinates of the center of the line is (center_x, center_y) where:
center_x = x1 + (x2 - x1/2 + ((75 - 45) / 2) center_y = 25 +....
Is not centred on the grid location you specified.
|
|
Is it possible to show multiple lines of text in grid cells using the .NET Compact framework? We need to create a grid where the middle column contains an address. We'd like to show this over multiple lines and (possibly) apply some formatting to the ...
Started by seanyboy on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
.NET Framework has traditionaly not-so-good grid.
You must override "OnPaint" method on the grid, or use some another grid ( I think the SourceGrid was in one of early version compatible wiht CF ).
|
Ask your Facebook Friends
|
Hi!
I'm currently creating a MSPaint-like WPF-application and struggling with the implementation of a snappable grid.
The painting of the grid is no problem with a VisualBrush and a Rectangle but the problem is that these lines are then purely for looks...
Started by chrischu on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It also seems cleaner to me than tracking collections of gridYou might consider drawing... .
Instead of copying the look of a single line, you'll be able to highlight the grid line(s grid line that is currently hilighted.
|
|
Can you draw the grid lines in a plot with parasitic axes in matplotlib?
I try this, based on the samples for grids and for parasitic axes, but grid drawing is not performed:
from mpl_toolkits.axes_grid.parasite_axes import SubplotHost import matplotlib...
Started by Pablo Rodriguez on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
One way around this inconvenience--i.e., to get the grid lines on your plot without having to change....
Five-six lines below that heading you'll see ' axes-grid '--uncomment this line and set the value to 'grid'.
|
|
I have a jTable set so that it is read only, and selection is done by single row only.
However, when the user selects a row and the row is painted, the jTable's vertical grid lines between columns are removed, causing a single horizontal block of colour...
Started by Psychic on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Called? What's your grid colour, and could it be the same as the selection background colour?
Update.
|
|
I use the MFC list control in report view with grid lines to display data in a vaguely spreadsheet manner.
Sometimes when the user scrolls vertically through the control, extra grid lines are drawn, which looks terrible.
This does not happen when the ...
Started by ravenspoint on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Maybe you can post a screenshot to illustrate the problem? I presume you'd prefer to fix the redraw issue and not size... .
Is this happening with the stock listview, or is it custom draw? I've never seen redrawing issues with the standard windows controls .
|
|
I need a reasonably smart algorithm to come up with "nice" grid lines for a graph (chart).
For example, assume a bar chart with values of 10, 30, 72 and 60. You know:
Min value: 10 Max value: 72 Range: 62
The first question is: what do you start from?...
Started by cletus on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
By deciding how many subdivisions you want in your grid:
value_per_division = magnitude / subdivisions to find the min, max, and interval size for grid lines when given inputs related to the dataset.
|
|
This is a VB .NET application where we are showing the output of a SQL statement in a Datagrid view. using .NET 2005.
We need to get the seperators of the headers on the grid control to be the same colors as the GridColor on the form. See the picture ...
Started by Jrud on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
A custom component, and overloading the OnPaint event handler to draw a line over the existing one.
|
|
I am looking for a way to populate a single grid using data bindings.
The way I do this at the moment is by using an ItemsControl where each item is represented as a Grid with the columns that I need. The main reason I want a single grid is to make the...
Started by Ashley Davis on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can make grid column widths "line up" across grids by using Grid.IsSharedSizeScope.
|