I am using Canvas.TextRect in Delphi 7 to display something on the screen.
I need the text to be a word enclosed in a rectangle.
You need to use DrawText (or DrawTextEx) with the DT_WORDBREAK flag.
See the sample in this thread .
Use
DrawText( hdc, pchar(s), length(s), rcRect, DT_NOPREFIX or DT_WORDBREAK);
Where
s: print string
s
rcRect: TRect the rectangle in which the line should be printed.
rcRect
Source: https://habr.com/ru/post/1721471/More articles:Lua Alien - specialized API - apiPath.Combine with spaces in the passed parameter? - stringASP.NET MVC 2 Templates - asp.net-mvcPassing a Delegate Object to a Method with the Func <> Parameter - c #C ++ boost :: thread and auto-lock containers - c ++What C # code does: - c #Is there a way to find the source application from which the data was copied to the clipboard - Windows Forms - c #Таблицы, переполненные CSS в Firefox - cssWatching sockets with Glib on Windows puts them in non-blocking mode - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1721476/rails-monthnames-tos&usg=ALkJrhjuLMU8L67BcnT-MG-zsDf4ahKAgAAll Articles