Hi Guys,
I am using MS Desktop 7.0.0.30.
When editing a feature in a layer that is in a transaction, labels for that feature fail to draw. I could not reproduce this behavior in a sample project for a long time but finally figured out what the problem is. In our application, when we set the TextColumnName of the TextStyle we always enclose the name of the column in square brackets as in the following:
TextStyle.TextColumnName = "[NAME]"
It isn’t necessary unless you want to combine multiple columns or if you want to combine static text with the column name as in the following:
TextStyle.TextColumnName = "Statename: [NAME]"
Whenever the column name is enclosed with square brackets and you edit a feature in a transaction the label will not draw. No problem if you don’t use the square brackets.
I have attached a sample project.
Thanks!
Steve
Label_Demo.zip (24.2 KB)
Bug with labeling when editing in transaction
Hi Steven,
Thanks for your post and sample, would you please use the attached CustomEditOverlay To replace the old one, now it should work.
Hope it helps
Summer
Post11399.txt (1.36 KB)
Hi Summer,
Thanks for the quick response. Your solution is not acceptable to me because I don’t want to commit the transaction at that time. I have implemented vertex editing with undo/redo and I need to leave the transaction open. I have implemented this to work not just with Shapefiles but also with SQL Server layers. Can this be fixed in the ThinkGeo code base?
Thanks,
Steve
Hi Steven,
Thanks for your further information, we have fixed it, would you please get the latest version 7.0.36.0 or 7.0.0.36 and try it again?
if you have any more question , please feel free to let us know.
Best Regards
Summer
Summer,
Thanks so much, it’s working fine now.
Steve
Hi Steven,
Great to hear it helped, if you have any more question, please feel free to let us know.
Best Regards
Summer