Hi All,I try to use code from sample program of SimpleGraph with alignment of node caption, but I'm receiving message "Incompatible types: 'TAlignment' and 'TgtTextAlignment'" - see attachment picture. What's wrong? Can you help me, please?

I have some idea about my problem. There is collision between alignment as taCenter and alignment's property of different component. Problem is that I have no source code for the different component. Acc. I can change SimpleGraph only. How can I rename alignment's property as taCenter to taCenterJustify, for example. What I need to do (sorry, I'm beginner in Delphi)

that is because i did not do my homework before posting an answer. SimpleGraph simple uses the TAlignment type declared in classes unit that comes with delphi and does not redeclare it, so instead of SimpleGraph.taCenter you should use Classes.taCenter and yes this time around I checked that it works.

For the record you can ctrl+click on a property to take you to its declaration then ctrl+click the properties type to go to its declaration to find out where something is declared then use that unit as the example above.