Hi list!
I'm experiencing some label trouble that I need to understand, and possibly remedy.
In short, I'm writing an MB application that updates some fields in a table. The objects to update are selected graphically, and then updated.
The attributes that are edited are shown as a label _expression_ in the mapper.
It is important that the user gets visual feedback from the labels, in other words they must change as the edits are applied.
One would think that this should be the expected behaviour. But this is not the case.
One task is to select a number of objects, then point at another object to fetch some value, and then update and calculate new values for the selected objects with this as input.
In this case, the labels will not reflect the change right away. The labels have a zoom visibility, and if I manually zoom in and out past the limit, the labels will update. So there is nothing wrong with the table update, it's done as expected.
Another task in the same application is to select some of the same objects and then ask to erase the values in the same fields as referred to above, that is setting the value 0 as it is numerical fields.
In this case, the labels update at once, showing zeroes where there were numbers.
All this takes place in one mapper window over which the application has control (meaning that the app contains code to create the mapper) This is because I need to know which layers are in the mapper, and their order.
I have tried to set map redraw on/off, forced a map redraw but nothing helps. I guess I could let the program zoom back and forth but I suspect this would drive the user mad or at least give her nausea. The same goes for recreating the layer all together and it woud take too long anyway.
Please anyone - let me in on the secrets on MapInfo dynamic labeling.
And to all Swedish fellow users on the list: Glad Midsommar!
Hälsning / Best regards Mats.E
________________________
FB Engineering AB
Södra Förstadsgatan 26
211 43 Malmö
Tel: 040-660 25 50
Mobil: 0705-27 60 27
Fax: 040-660 25 99
[EMAIL PROTECTED]
www.fbe.se
_______________________________________________ MapInfo-L mailing list [email protected] http://www.directionsmag.com/mailman/listinfo/mapinfo-l
