perahi wrote:Thx for your answer..
Did you mangage to solve the ... issue? Can you please show me how?
Go to TGraphNode.GetTextRect function. Locate the code below:
if Result.Right > MaxTextRect.Right then
Result.Right := MaxTextRect.Right;
And change it to this:
// if Result.Right > MaxTextRect.Right then
Result.Right := MaxTextRect.Right+1;
That is, comment out the condition (if-part) and add always 1
to the assignment. Don't forget to recompile / reinstall the
perahi wrote:As far as I understand, the TGraphLink.GetTextRegion function supports multiline since the DT_SINGLELINE flag is not set. TGraphLink.DrawText uses the TextOut function, while TGraphNode.DrawText uses the Windows.DrawText without the DT_CALCRECT flag.
Isnt the TextOut function capable of printing multiline??
I have no idea. If DrawText for graph nodes supports multiline then I think it will be easy to have the same in DrawText for links.
BTW, is it possible to trace into the source of SimpleGraph (add breakpoints, etc.) while working on a project that uses the TSimpleGraph component???