Solved

Lines that resize with a grid

Posted on 2009-07-08
6
1,368 Views
Last Modified: 2013-11-19
I would like to draw lines that span rows and columns of a grid. For example, a line that goes from the centre of grid element A1 to the centre of grid element A10. They need to resize with the grid such that the line still goes from A1 to A10. Help please!
0
Comment
Question by:SINCO
  • 2
6 Comments
 

Author Comment

by:SINCO
ID: 24837915
[Just to clarify, by A1 i mean element 0,0 (or any element really) and A10 could be thought of as 0,9. I was just referring to columns as letters and rows as numbers for some random reason]
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 24849816
I would think that this article describes a possibility (with Line.Stretch="Fill"):

Displaying Grid Lines
http://www.trillian.com.au/2009/01/displaying-grid-lines.html
0
 

Author Comment

by:SINCO
ID: 24857418
That's great. The important bits are to bind the columnspan property of horizontal and vertical lines to the x and y dimensions of the grid. Set stretch to fill. And, unlike the sample code, set horizontal and vertical alignment to center. Thanks.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now