It probably can be done in VFP.
Is the floor plan a static image? Or do you want to be able to generate it on the fly, perhaps in response to user input? If the latter, it would probably be too difficult.
But if the floor plan already exists as an image, you could display it in an image control on your form. That part is easy.
To trap the mouse clicks, you could write code in the image's MouseMove event. The code would constantly store the mouse's X and Y co-ords (which MouseMove receives as parameters) in a pair of custom form properties.
The image's Click event could then use those co-ords to determine which part of the floor plan the user clicked in. Those co-ords are relative to the form, so you would have to adjust them to make them relative to the image. That would be no problem.
The final step would be to use a lookup table that relates the co-ordinates to specific items in the plan (specific rooms or whatever). That will tell you exactly what the user clicked on. You would then have all the information you need to update the table.
Does that meet your requirements? As I indicated earlier, if the floor plan has to be generated each time, you would probably need to find a third-party solution.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips, training, consultancy