>Cetin, I understand your point and my intuition tells me you are right not to generate the maps in this way. However, it works so very well I am tempted to pursue this method ... especially if a slowish closedown is the main price to pay. The advantage of adding the objects as I do is that the classed labels have properties responding to clicks, mouse movements, etc. Also, I can choose a wide range of symbols and text linked to the label captions, setting these from relevant DBF map style fields. I’m not sure I can get this same flexibility in another way (drawing lines and boxes?). Using a graph interface, I don’t think I have the same close control of the points or other elements of my map module such as the map grid and related buttons specific to this app. Well, I daresay I could discover a way to link an existing graph app - I’ve tickered with msgraph and haven’t got very far frankly. With a grid, do you mean each grid cell is a potential point? I did try this before but it lacked
>the x/y resolution I need. Denis
Hard to comment :)
For I saw 'map' I thought it might be a way. I somewhat deal with maps too and here is a list things I use :
-MapObjects activex control
-MS Chart 2.0 Activex (fastest and easy to code graph thing IMHO) - If you need I could find thread id of sample code.
-Lines and boxes (these were the fastest native elemnts in VFP to draw a map in any resolution, zoom in-out but yes tricky as they're not objects and do not apply to containers, only form and screen)
Line, Pset, Circle, Cls, Print (BTW maybe Print might be a replacer for label)
-And yes a grid :) What I did was to :
Think of columns as X of map and records as Y points
I filled the rows with numeric values - say -1000 to 1000 as heights
Created a method that gets the height as parameter and returns the color for it.
Columns and textboxes in them were all my subclasses having dynamicbackcolor, dynamicforecolor, click, mousemove,mouseicon etc code
In textbox.gotfocus of columns I directly returned NODEFAULT :) You can click, mousemove etc but no focus :)
Good thing about it I was free on Y points (rows), if part I have to show is over field limit I scroll norizontally replacing data :)
http://www.attendance-tracking.com/appointment_scheduling.htm3rd from the bottom image is a simple subset of this approach. (The image following that is also a grid in grid:)
-Another colorfull (with or w/o text and/or picture) grid is Activex HierarchicalFlex grid (unfortunately page is not updated to show this one).
-And yet another way (again unfortunately page is old to show this one) is to create it as HTML. With HTML you have greater flexibility what to show and what to do with mouse events :) Or at least think of this as putting your labels into an HTM instead. You could keep them in table and write out to an HTM at once, then show with FFC\Internet\Web browser control.
Cetin