Click here to Skip to main content
15,895,740 members
Home / Discussions / C#
   

C#

 
GeneralRe: Therotical Question...... Pin
Christian Graus17-Dec-07 19:55
protectorChristian Graus17-Dec-07 19:55 
GeneralRe: Therotical Question...... Pin
sindhutiwari17-Dec-07 20:09
sindhutiwari17-Dec-07 20:09 
GeneralRe: Therotical Question...... Pin
N a v a n e e t h17-Dec-07 21:55
N a v a n e e t h17-Dec-07 21:55 
GeneralRe: Therotical Question...... Pin
Paul Conrad24-Dec-07 19:55
professionalPaul Conrad24-Dec-07 19:55 
GeneralNot enough memory to run Microsoft Excel. Please close other applications and try again Pin
gauthee17-Dec-07 18:35
gauthee17-Dec-07 18:35 
GeneralRe: Not enough memory to run Microsoft Excel. Please close other applications and try again Pin
mav.northwind17-Dec-07 19:26
mav.northwind17-Dec-07 19:26 
GeneralRe: Not enough memory to run Microsoft Excel. Please close other applications and try again Pin
gauthee17-Dec-07 20:01
gauthee17-Dec-07 20:01 
QuestionImage and Viewport - Drag Move, Pixel Positons etc Pin
Shailesh Appukuttan17-Dec-07 17:45
Shailesh Appukuttan17-Dec-07 17:45 
Hello everyone,

I need some help. I have been working on it for some time but havent been able to think of any solution. Even had thought of making do without it, even though it was a major part of my project. To be honest, I am a beginner and hence unawares about many of the stuff. So here is my problem:

I am working on a "PUBLIC TRANSPORT INFORMATION SYSTEM" (In India we dont have one yet for most cities). Most of the stuff I have been able to do, but I am stuck at one point. I want to display the selected route between two places on the map. I want the map to be drag and move (like we have for pdf files). This is since the map of the city is extremely large (3 feet * 2 feet on paper, which I plan to scan. I may reduce the size a little, but not by much as I want the lanes and small roads to be visible with their names).

So, I want the following things to be done (in order of their priority). Please help me out, I really need it.

1> Firstly, I want the large image to be shown in a small viewport using drag and move so as to allow the user to wander through the whole map of the city.

A pic of what I mean is shown here:
http://www.geocities.com/this_is_shailesh/index.html

2> Secondly, I want to be able to move the viewport to a specific area of the map. For e.g., when the user selects a particular place on the map in a drop down list, I want the viewport to move to that part of my map which shows that location.

Currently, the only way I thought it could be done is by mapping the pixel positions for all the places in the drop down list and then moving the viewport such that the corresponding pixel position is the center of the viewport. But I admit, I really dont know how to implement this.

3> Finally, if its posible, is there any way by which I can highlight the selected paths.

My map will be static. So I was thinking on the lines of placing markers on all the stations (overlapping exactly on top), whose visibility can be adjusted on/off. When they are a part of the route, their visibility will be ON, and when not they will be OFF. The markers could be plain coloured circles, so that a series of dots (or circles) will indicate all the stops/stations along the selected path.

But this also I dont know how to implement in code. I have no clue how I can make these markers overlap the stations, esp coz the map will never be shows in its entirety at any time. I mean how do I do the pixel positioning with respect to the image rather than the viewport, which is what is generally done in case of pictureboxes etc.

So if anyone can help, I did be deeply indebted. In anyone knows of any precoded stuff or libraries i can make use of, please do inform. Or else, if you have any alternate suggestions for me, it would be great as I am anyways not making much progress right now.

Thanks a lot in advance. Waiting anxiously Smile | :)
GeneralRe: Image and Viewport - Drag Move, Pixel Positons etc Pin
Christian Graus17-Dec-07 18:18
protectorChristian Graus17-Dec-07 18:18 
GeneralRe: Image and Viewport - Drag Move, Pixel Positons etc Pin
Shailesh Appukuttan17-Dec-07 21:31
Shailesh Appukuttan17-Dec-07 21:31 
Generalmember function or not C# Pin
tasumisra17-Dec-07 17:08
tasumisra17-Dec-07 17:08 
GeneralRe: member function or not C# Pin
CKnig17-Dec-07 18:31
CKnig17-Dec-07 18:31 
QuestionVS 2008 Walkthroughs on WPF? Pin
David Veeneman17-Dec-07 17:02
David Veeneman17-Dec-07 17:02 
GeneralRe: VS 2008 Walkthroughs on WPF? Pin
CKnig17-Dec-07 18:37
CKnig17-Dec-07 18:37 
GeneralRe: VS 2008 Walkthroughs on WPF? Pin
David Veeneman18-Dec-07 2:25
David Veeneman18-Dec-07 2:25 
GeneralRe: VS 2008 Walkthroughs on WPF? Pin
CKnig18-Dec-07 3:21
CKnig18-Dec-07 3:21 
GeneralRe: VS 2008 Walkthroughs on WPF? Pin
David Veeneman18-Dec-07 3:41
David Veeneman18-Dec-07 3:41 
GeneralRe: VS 2008 Walkthroughs on WPF? Pin
Paul Conrad24-Dec-07 19:57
professionalPaul Conrad24-Dec-07 19:57 
QuestionAny mapping tool for NHibernate ? Pin
imagic17-Dec-07 15:29
imagic17-Dec-07 15:29 
AnswerRe: Any mapping tool for NHibernate ? Pin
ekynox17-Dec-07 16:15
ekynox17-Dec-07 16:15 
AnswerRe: Any mapping tool for NHibernate ? Pin
Mark Churchill17-Dec-07 20:57
Mark Churchill17-Dec-07 20:57 
QuestionEnhanced Listbox Pin
tcsoccerman17-Dec-07 15:08
tcsoccerman17-Dec-07 15:08 
GeneralRe: Enhanced Listbox Pin
Anthony Mushrow17-Dec-07 15:35
professionalAnthony Mushrow17-Dec-07 15:35 
GeneralRe: Enhanced Listbox Pin
Luc Pattyn17-Dec-07 15:38
sitebuilderLuc Pattyn17-Dec-07 15:38 
GeneralRe: Enhanced Listbox Pin
tcsoccerman18-Dec-07 15:18
tcsoccerman18-Dec-07 15:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.